#include <iostream>
using namespace std; 
int main() {  
  int n, sum=100000; 
  cin >> n;  
  for(int i=0; i<n; i++) {
    sum += sum*5/100;   
    if(sum%1000!=0) {     
      sum /= 1000;   
      sum *= 1000; 
      sum += 1000;  
    } 
  }  
  cout << sum << endl;  
  return 0;
}
