#include <iostream>
using namespace std;
int main(){
    int a=100000,b=0,t;
    cin>>t;
    for(int k=1;k<=t;k++){
        b=a*1.05;
        b=(b+900)/1000*1000;
        a=b;
    }
        cout<<b<<endl;
}