#include <iostream>

double round_up(double n){
        int i=(int)n;
        if(i%1000>0){
                i-=i%1000;
                i+=1000;
        }
        return i;
}

int main(){
        int n;
        std::cin >> n;

        double result=100000;
        for(int i=n;i;i--){
                result*=1.05;
                result=round_up(result);
        }
        std::cout << result;
        return 0;
}