import java.util.Scanner;
public class HDU_oj2009 {
/*
* 数列的定义如下:
数列的第一项为n,以后各项为前一项的平方根,求数列的前m项的和*/
public static void main(String[] args) {
Scanner sn = new Scanner(System.in);
while(sn.hasNext()) {
double n = sn.nextDouble();
int m = sn.nextInt();
double ans = n;
double num = n;
for(int i = 1; i < m; i++) {
num = Math.pow(num, 0.5);
ans = ans + num;
}
System.out.println(String.format("%.2f",ans));
}
}
}