#include <iostream>
#include <iomanip>
#include <cmath>
#include <math.h>

using namespace std;

int main() 
{
    int i=0;
    double n=0;
    int m=0;
    int count=0;
    while(cin>>n>>m)
    {
        if(count)
        {
            cout<<endl;
        }
        count=1;
        double ans=0;
        double b=n;
        for(i=0;i<m;i++)
        {
            b=(double)pow(n,0.5);
            ans+=(double)n;
            n=b;
        }
        cout.setf(ios::fixed);
        cout<<setprecision(2)<<ans;
    }
    return 0;
}