#include <stdio.h>

int main(void){
int n;
scanf("%d",&n);
int coin=100000;
for(int m=0;m<n;m++){
coin*=1.05;
coin+=5;
coin/=10;
coin*=10;
coin+=50;
coin/=100;
coin*=100;
coin+=500;
coin/=1000;
coin*=1000;
}
printf("%d\n",coin);
return 0;
}