#include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
#include <sstream>
#include <cstdlib>
#include <cmath>
 
using namespace std;

int main(){
    long long int debt = 100000;
    long long int temp;
    int n;
    cin >> n;
    for(int i = 0; i < n; i++){
    	debt +=  debt * 0.05;
    	temp = debt;
    	debt /= 1000.0;
    	if(temp - debt * 1000 != 0){ debt++; }
    	debt *= 1000.0;
    }
    cout << debt << endl;
    return 0;
}