import java.util.Scanner;
import javax.net.ssl.ExtendedSSLSession;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while (in.hasNext()) {
double n = in.nextInt();
int m=in.nextInt();
double sum=n;
for(int i=1;i<m;i++){
n=Math.sqrt(n);
sum+=n;
}
System.out.printf("%.2f",sum);
System.out.println();
}
}
}
import javax.net.ssl.ExtendedSSLSession;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while (in.hasNext()) {
double n = in.nextInt();
int m=in.nextInt();
double sum=n;
for(int i=1;i<m;i++){
n=Math.sqrt(n);
sum+=n;
}
System.out.printf("%.2f",sum);
System.out.println();
}
}
}