#include <iostream>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <string>
#define rep(x,to) for(x=0;x<to;x++)
#define rep2(x,from,to) for(x=from;x<to;x++)

using namespace std;


int main(void){

int n,i,s,kin=100000;
double wkin;
	cin >> n;
	rep(i,n){
		wkin = kin * 1.05;
		s=0;
		if((wkin /1000) > (int)(wkin /1000)) s = 1;
		kin = ((int)(wkin /1000) + s) * 1000;
	}
	cout << kin << endl;
	return 0;
}