#include <iostream>

using namespace std;

int main(void)
{
	int n;
	cin>>n;

	int money=100000;
	for(int i=0; i<n; i++){
		
		money = money*1.05;

		int amari;

		amari = money%1000;

		if(amari>0){
			money += amari = 1000-amari;
		}
	}
	cout<<money<<endl;
}