#include <iostream>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <cstdio>
using namespace std;

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