#include <iostream>
#include <math.h>

using namespace std;

long my_round(long value, int near);

int main(){
  int n;
  long debt = 100000;
  cin >> n;

  for(int i=0; i<n; i++){
    debt = my_round(debt,1000);
  }
  cout << debt << endl;
}

long my_round(long value, int near){
  int a, b;
  long loan;
  
  loan = value*0.05;
  value += loan;
  a = value / near;
  b = value % near;
  if(b != 0){
    a++;
  }
  return a*near;
}