#include <iostream>
using namespace std;

int main()
{
        int week;
        long long int debt = 100000;

        cin >> week;
        for(int i=0;i<week;i++){
                debt = debt + debt*0.05;
                if((debt%1000)!=0){
                        debt = (debt/1000 +1)*1000;
                }
        }

        cout << debt << "\n";

        return 0;
}