#include<iostream>
using namespace std;

#define INITIAL_DEBT 100000 // 10万

int main()
{
        int n;
        cin >> n;
        
        int debt = INITIAL_DEBT;
        for(int i=1; i<=n; i++){
                debt *= 1.05; // 利子(5%/1week)
                int rem = debt%1000; // 1,000円以下の端数
                if( rem ){ debt = debt - rem + 1000; }
        }
        cout << debt << endl;
                
        return 0;
}