#include <iostream>

using namespace std;

int main(){
  int n;
  int debt=100000;
  double tmp;

  cin >> n;
  for(int i=0; i<n; i++){
    debt += debt * 0.05; 
    //1000円未満切り上げ
    tmp = (double)debt/1000 - debt/1000;
    tmp = (tmp > 0.0) ? 1.0 : 0.0;
    debt = (debt/1000) * 1000 + tmp * 1000;
  }

  cout << debt << endl;
  return 0;
}