#include<iostream>
using namespace std;
int main()
{
  int week,bal=100000,i;
  cin >> week;
  for(i=0;i<week;i++)
  {
    bal = bal * 1.05;
    bal /= 1000;
    bal *= 1000;
    bal += 1000;
  }
  cout << bal << endl;
  return 0;
}

      