#include <iostream>

using namespace std;

int main()
{
	int n;
	cin>>n;
	
	int dept=100000;
	
	for(int i=0;i<n;i++){
		dept+=dept/20;
		if(dept%1000)
			dept+=1000-dept%1000;
	}
	cout<<dept<<endl;
	
	return 0;
}