#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<iostream>
#include<string>
using namespace std;


int main() {

	int dept = 100000;

	int n;

	cin >> n;

	for (int i = 0; i < n; i++) {
		dept = (int)((double)dept*1.05);

		if (dept % 1000 != 0) {

			dept = dept - (dept % 1000) + 1000;
		}





	}
	printf("%d\n", dept);

	//system("pause");
	return 0;
}
