#include<iostream>
#include<cmath>

int main(void){
    int n,debt;
    debt=100000;
    std::cin>>n;
    while(n--){
        debt*=1.05;
        if(debt%1000){
            debt+=1000-debt%1000;    
        }
    }
    std::cout<<debt<<std::endl;
    return 0;
}
