#include <iostream>
using namespace std;

int main()
{
  int n;
  int amount = 100000;

  cin >> n;

  for(int i=0; i<n; i++) {
    amount = amount * 1.05;
    if(amount % 1000 != 0) {
      amount = amount + 1000 - amount % 1000;
    }
  }

  cout << amount << "\n";

  return 0;
}