#include<iostream>
#include<cstdio>
#include<cstring>
#include<iomanip>
#define LL long long
using namespace std;

int main(){
    int n;
    while(cin>>n){
        int debt=100000;
        while(n--){
            debt*=1.05;
            if(debt%1000!=0){
                debt=(debt/1000+1)*1000;
            }
        }
        cout<<debt<<endl;
    }
    return 0;
}

