#include <iostream>

using namespace std;

int main()
{
	int n;
	int r = 100000;

	while (cin >> n ){	
		for (; n--; r % 1000 ? r += 1000 - r % 1000: r){
			r *= 1.05;
		} // end for
		cout << r << endl;	
	} // end while

	return 0;
}