//0007
#include <bits/stdc++.h>
using namespace std;

int money = 100000;
double risi = money * 0.05;

void up() {
    int judge = money % 10000;
    //cout << money % 10000 << endl;
    if(judge >= 1000) {
        money -= judge; money += 10000;
    }
}

int main(void) {
    int n; cin >> n;
    for(int r = 0; r < n; r++) {
        money += risi;
        //up();
    }
    up();
    cout << money << endl;
    return(0);
}