#include <iostream>
#include <cmath>
#include <iomanip>
#define MAXLEN 1000
using namespace std;
int main()
{
int n;
while(cin>>n)
{
int m;
cin>>m;
double a[MAXLEN];
double s=0;
a[0]=n;
for(int i=0;i<m;i++)
{
a[i+1]=sqrt(a[i]);
s+=a[i];
}
cout<<fixed<<setprecision(2)<<s<<endl;
}
return 0;
}