#include <iostream>

using namespace std;

int main(int argc, char **argv)
{
	int s, n, t;
	
	while(cin >> n){
		s = 100000;
		for(int i = 1; i <= n; i++){
			s += (s*0.05);
			t = s % 1000;
			if(t != 0){
				s = s - t + 1000;
			}
		}
		cout << s << endl;
	}
	
	return 0;
}