#include<iostream>
using namespace std;

int main(){
	int input, money = 100000;
	cin >> input;

	for(int i=0; i < input; i++){
		money *= 1.05;
		if(0 < money % 1000) money = money - money%1000 + 1000;
	}

	cout << money << endl;
}