#include <iostream>
#include <math.h>
using namespace std;

int main() {
  double debt;
  int n;
  debt = 100000;
  cin >> n;
  for(int i=0;i < n;i++) {
    debt *= 1.05;
    debt /=1000;
    debt += 0.999;
    debt = floor(debt);
    debt *= 1000;
  }
  cout << (long long int)debt << endl;
}