#include <bits/stdc++.h>
using namespace std;
int yen=100000;
int main()
{
    int a,b,i,j,p,q;
    cin>>a;
    for(i=1;i<=a;i++)
    {
        b=yen*5;
        b=b/100;

        p=b/1000;
        q=b%1000;
        if(q!=0)p++;

        yen=yen+(p*1000);
    }
    cout<<yen;
    return 0;


}