#include<iostream>
using namespace std;

int main(){
  int n;
  int ans=100000;

  cin >> n;

  for(int i=0;i<n;i++){
    ans *= 1.05;
    if((int)ans%1000){
      ans-=(ans%1000);
      ans+=1000;
    }
  }

  cout<<ans<<"\n";
}