#include<iostream>
#include<vector>
#include<algorithm>
#include<string>

#define add push_back
#define inf 2147000000

#define rep(i,n) for(int i=0;i<n;i++)
#define deb(a) cout<<a<<endl
#define out(a) cout<<a<<endl;

using namespace std;

int main(void){
	int n;
	scanf("%d",&n);
	
	int gaku=100000;
	
	rep(q,n){
		gaku*=1.05;
		
		if(gaku%1000 > 0){
			gaku-=gaku%1000;
			gaku+=1000;
		}
	}
	out(gaku);
}