#include <iostream>
#include <cmath>
using namespace std;

int main(){
  int n;
  double debt = 10000;
  cin >> n;
  for(int i = 0; i < n; i++){
    debt *= 1.05;
  }
  int result = (int) debt;
  result /= 1000;
  result++;
  result *= 1000;
  cout << result << endl;
}