#include <iostream>
using namespace std;

int main(){

  int n,tmp;
  int debt = 100000;

  cin >> n;

  while(n){
    debt *=  1.05;
    if( debt % 1000 > 0 ){
      debt += 1000;
      debt -= debt%1000;
    }
    n--;
  }

  cout << debt << endl; 
  return 0;
}