#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int n,ans;
	ans = 100000
	cin >> n;
	for (int i=0;i<n;i++) {
		ans = ans * 1.05;
		if (ans%1000!=0)ans=ans + ans%1000
	}
	cout << ans;
	return 0;
}