#include <iostream>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;

int main() {
    int debt = 10000;
    int n;
    cin >> n;
    REP(i,n) {
        debt += debt / 20;
        debt = (debt + 500)/1000*1000;
    }
    cout << debt << '\n';
}