#include<iostream>

using namespace std;



int loan(int n){
   int amount=100000;
   for(int i=0;i<n;i++){
      amount+=amount*0.05;
      if(amount%1000!=0) amount=(amount-(amount%1000))+1000;
   }
   return amount;
}


int main(){

   int n;

   cin >>n;

   cout <<loan(n)<<endl;

   return 0;

}