#include<bits/stdc++.h>
using namespace std;
int main()
{
float n,i,j,s;
cin>>n>>i;
for(j=1;j<=i;j++){
s=n/1000;
n+=s;
}
printf("%.4f",n);
return 0;
}
/**************************************************************
Problem: 1446
User: zzz
Language: C++
Result: Wrong Answer
****************************************************************/