#include<iostream>
#include<cmath>
using namespace std;

int main(){
	int money = 100000, month;
	cin >>month;
	
	for(int i = 0; i < month; i++){
		money *= 1.05;
		if(money % 1000 != 0) money = (int)floor((double)money / 1000) * 1000 + 1000;
	}
	
	cout <<money<<endl;
	return 0;
}