#include<iostream>
using namespace std;

int main()
{
	int n;
	cin >> n;
	int a=100000;
	int b=0;
	for (int i=0;i<n;i++){
		b = a*1.05;
		if(b/1000.0-b/1000){
			a = (b/1000+1)*1000;}
		else 
			a = a*1.05;
	}
	cout << a << endl;

    return 0;
}