#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <cmath>
using namespace std;
typedef vector<int> VI;
#define REP( i, m, n ) for ( int i = (int)( m ); i < (int)( n ); ++i )

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);

    const double rate  = 1.05;
    int debt = 100000;

    int n;
    cin >> n;
    
    REP(i, 0, n) {
        debt *= rate;
        debt = ceil(debt / 1000.0) * 1000;
    }
    
    cout << debt << endl;

    return 0;
}