#include<bits/stdc++.h>
#define rep(i,n) for(int i=0; i<n; i++)
using namespace std;
int main(){
  int n;
  cin >> n;
  int a = 100000;
  rep(i,n){
    a *= 1.05;
    if(a % 1000 != 0){
      a -= a%1000;
      a += 1000;
    }
    //cout << a << endl;
  }
  cout << a << endl;
  return 0;
}
