#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); i++)
#define repd(i,a,b) for (int i = (a); i < (b); i++)
typedef long long ll;
int main(void)
{
	int n, sum = 100000;
	cin >> n;
	rep(i, n)
	{
	    sum *= 1.05;
        if (sum%1000!=0) sum = (sum/1000 + 1)*1000;
	}
    cout << sum << endl;
}
