#include<iostream>
using namespace std;

int main(){
	int n;
	int d=100000;
	do{
	cin >> n;
	}while(n>100);
	
	for(int i=n;i>0;i--){
		d += d*0.05;
		if(d % 1000 != 0){
			d += 1000;
			d -= d%1000;
		}
	}
	cout << d <<endl;
}