#include<iostream>
#include<string>
using namespace std;
int main(){
	int m;
	int s=100000;
	cin>>m;
	for(int i=0;i<m;i++){
      s+=s*0.05;
	  if(s%1000!=0)
		  s-=s-s/1000*1000;
	  s+=1000;
	}
	cout<<s-1000<<endl;
    return 0;
}