#include<iostream>
using namespace std;
int main(void)
{
    int n,A=100000,b,a1,b1,A1=100000;
    cin>>n;
    for(int i=0;i<n;i++){
        b1=A*0.05/1000;
        a1=b1*1000+1000;
        A1+=a1;
    }        cout<<A1<<"\n";
}