#define _CRT_SECURE_NO_WARNINGS
#define M_PI 3.14159265358979
#include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include<iomanip>
#include<vector>
#include<cmath>
#include <algorithm>

using namespace std;


int main()
{
	int n,t = 100000;
	cin >> n;

	for (int i = 0; i < n; i++){
		t = t + t*0.05 ;
		if (t % 1000 != 0){
			t = t - (t % 1000)+1000;
		}
	}

	cout << t << endl;
	return 0;
}