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

int main() {
	int i,n,b,c,d;
	cin >> n;
	b=100000;
	for (i=0;i<n;i++){
		b=b*1.05;
		c=b%1000;
		d=b/1000;
		if(c!=0){
			b=(d+1)*1000;
		}
	}
	cout << b<<endl;
	return 0;
}