#include<iostream>
#include<string>
#include<algorithm>
using namespace std;

int main(){
  int n;
  cin >> n;

  int now = 100000;
  while(n--){
    now *= 1.05;
    if(now % 1000) now +=  -now % 1000 + 1000;
  }
  cout << now << endl;

  return 0;
}