#include<iostream>
using namespace std;

int money(int n){
	int m = 100000;
	for(int i=0; i<n; i++){
		m *= 1.05;
		if(m % 1000 != 0){
			m += 1000 - m%1000;
		}
	}
	return m;
}

int main(){
	int n;
	while(cin >> n){
		cout << money(n) << endl;
	}
}