#include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int n,pp,money = 100000; // 10万円
  cin >> n;
  for(int i=0;i<n;i++){
    money = money + (int)(money * 0.05); 
    if(money % 1000 > 0){
      money = (money + 1000) - (money % 1000);
    }
  }
  cout << money << endl;
}