#include <iostream>
#include <math.h>
using namespace std;

int main(void)
{
  int n;
  int m = 100000;
  double tmp = 0.0;

  cin >> n;
  for(int i=0;i<n;i++)
    {
      tmp = 0.0;

      m = m * 1.05;
      if(m % 1000 == 0)
	{
	  continue;
	}
      else
	{
	  tmp = (double)m / 1000.0;
	  tmp = ceil(tmp);
	  tmp *= 1000.0;
	  m = tmp;
	}
    }

  cout << m << endl;
}