#include<iostream>
using namespace std;
int main(){
  int n,k;
  double  money;
  money = 100000;
  cin >> n;
  
  for(int i = 0;i < n;i++){
    money = money * 1.05;
  
  k = money / 1000;
  k = k * 1000;
  if(money -k > 0){
    k =  k+1000;
     } 
  money = k;
  }
  cout << k << endl;
}