#include <stdio.h>
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
    int n; int sum=100000;
    cin >> n;
    while(n--)
    {
       sum*=1.05;
       if(sum%1000!=0)sum-=sum%1000,sum+=1000;
    }
    cout << sum << endl;
}