#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include <functional>
#include <iomanip>
using namespace std;

#define ll long long int

#define rep(p,q) for(int i = p; i < q;i++)


int main(void) {
	int week;
	cin >> week;
	int debt = 100000;
	rep(0, week) {
		debt = debt*1.05;
		if ((int)debt % 1000 != 0) {
			debt += 1000 - debt % 1000;
		}
		
	}
	cout << debt << endl;
}

