#include <iostream>
#include <string>

using namespace std;

int main() {
  int n, x = 100000;
  cin >> n;
  for (int i = 0; i < n; i++) {
    x += x / 20;
    x = (x + 999) / 1000 * 1000;
  }
  cout << x << endl;
  return 0;
}