//01
#include<iostream>

using namespace std;

int main(){
  int d[101]={100000};
  for(int i=1;i<=100;i++){
    d[i]=d[i-1]+d[i-1]/20;
    if(d[i]%1000){
      d[i]=(d[i]/1000+1)*1000;
    }
  }
  for(int n;cin>>n;){
    cout<<d[n]<<endl;
  }
  return 0;
}