#include <iostream>
#include <queue>
#include <stack>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <string.h>
#include <string>
using namespace std;

int money = 100000;

int main(){
	int n;
	int tmp;
	cin>>n;
	for(int i=0;i<n;i++){
		money*=1.05;
		tmp = (money/100)%10;
		if(tmp!=0){
			money/=1000;
			money++;
			money*=1000;
			
		}
		//	cout << money << endl;
	}
	
	cout << money << endl;
	return 0;
}