#include <iostream>
#include <iomanip>
#include <list>
#include <map>
#include <algorithm>
#include <stack>

#define AGE 1000
#define DEBUG 0

using namespace std;


int main(){
	int reverseMoney = 100000;
	int week = 0;
	while(cin >> week){
		reverseMoney = 100000;
		for(int i = 0; i < week; i++){
			reverseMoney += reverseMoney * 5 / 100;
			if(reverseMoney % AGE != 0 && reverseMoney % AGE < 1000){
#if DEBUG
				cout << "reverseMoney % AGE : " << reverseMoney % AGE << endl;
#endif
				reverseMoney -= reverseMoney % AGE;
				reverseMoney += AGE;
			}
#if DEBUG
			cout << reverseMoney << endl;
#endif
		}
		cout << reverseMoney << endl;
	}
	return 0;
}