#include <iostream>
#include <string>
using namespace std;

typedef unsigned long long ull;
int main(void){
  ull c = 100000;
  int n; cin >> n;
  while(n--){
    c *= 1.05;
    if(c%1000 > 0){
      c = c - c%1000 + 1000;
    }
  }
  cout << c << endl;
  return 0;
}