#include<iostream>
using namespace std;
int kiriageru(int);

int main() {
	int money = 100000;
	int n;
	cin >> n;
	
	for(int i = 0; i < n; ++i) {
		money += money / 20;
		money = kiriageru(money);
	}
	
	cout << money << endl;
}

int kiriageru(int a) {
	int ddd = a % 1000;
	return (ddd==0? (a-ddd):(a-ddd+1000));
}