#include <iostream>
using namespace std;

int main() {
	int n=0;
	while(cin >> n){
		if(n==0)	break;
		int m=100000;
		while(--n>=0){
			m+=m*0.05;
			m+=(m%1000==0?0:1000);
			m/=1000;	m*=1000;
		}
		cout << m <<endl;
	}
	return 0;
}