#include<iostream>
using namespace std;
int main(){
  int n,sum = 100000;
  cin >>n;
  while(n--){
    sum = (int)(sum*1.05);
    if(sum%1000){sum = (sum/1000)*1000+1000;}
  }
  cout <<sum<<endl;
  return 0;
}