#include <algorithm>
#include <sstream>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <stack>
#include <stdio.h>
#include <string>
#include <queue>
#include <vector>
using namespace std;

int main()
{
	int x = 100000, y, z;
	int n;
	cin >> n;

	for (int i = 0; i < n; i++) {
		x *= 1.05;
		y = x / 1000;
		z = x % 1000 > 0 && x % 1000 < 1000 ? 1000 : 0;
		x = y * 1000 + z;
	}

	cout << x << endl;
}
