#include
void main(){
int year;
double r=0.042, amount, money;
scanf("%lf %d", &money, &year);
switch(year){
case 1:{r=0.03; break;}
case 2:{r=0.033; break;}
case 3:
case 4:{r=0.038; break;}
}
amount=money*pow(1+r, year);
printf("total amount=%6.2lf\r\n", amount);
}
//利滚利的