#include <iostream>
#include <cstdio>
using namespace std;
typedef long long l;

l convert(l money) {
    double temp = money;
    temp /= 1000;
    if(temp > 0) money += 1000;
    money -= money % 1000;
    return(money);
}

int main(void) {
    int n; cin >> n;
    l now = 100000;
    l plus = now * 0.05;
    for(int r = 0; r < n; r++) {
        now += plus;
        now = convert(now);
    }
    cout << now << endl;
    return(0);
}