#include <iostream>
using namespace std;

int main(){
  int n;
  int money = 100000;
  cin >> n;
  for(int i = 0;i < n;i++){
	money =(money *1.05);
	int kiri = money%1000;
	if(kiri > 0){
	  money -=kiri;
	  money +=1000;
	}
  }
  cout << money << endl;
  return 0;
}