#include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
using namespace std;

int main(){
    int n, money = 100000;
    cin >> n;
    REP(i, n){
    	int tmp;
    	money *= 1.05;
    	tmp = money % 1000;
    	if(tmp > 0){
    		money -= tmp;
    		money += 1000;
    	}
    }
    cout << money << endl;
}
