#include<iostream>
using namespace std;

int main()
{
  int n,dpt=100000;
  cin >> n;
  for(int i=0;i<n;i++){
    dpt /= 20;
    dpt *= 21;
    if(dpt - (dpt/1000)*1000 > 0)dpt = (dpt/1000+1)*1000;
     else dpt = (dpt/1000)*1000;
  }
  cout << dpt << endl;
  
  return 0;
}