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

int main() {
  int n, d = 100000;
  cin >> n;
  while (n--) {
    d = (int)ceil(d * 1.05 / 1000) * 1000;
  }
  cout << d << endl;
  return 0;
}
