#include <iostream>
#include<cmath>

using namespace std;
            
int main(){

    int syakkin = 100000;
    int syu;
    double d;
    cin >> syu;
    
    for(int i = 0; i < syu; ++i){
        syakkin = (syakkin + ((syakkin / 100) * 5));
        syakkin = ceil(syakkin / 1000.0) * 1000;
    }

    cout << syakkin << endl;
    
	return 0;
}