#include<iostream>

using namespace std;

main(){
int inNum,i;
int debt = 100000;

cin>>inNum;
for(i = 0; i < inNum; i++){
if((debt=debt+debt*0.05)%1000==0);
 else{
debt/=1000;
debt+=1;
debt*=1000;
}
}
cout<<debt<<endl;
}