#include<iostream>

using namespace std;

int main(){

int x = 100000,y,n = 1;
cin >> y;

while(n <= y){
  if(x % 1000 == 0){
    x = x*1.05;}
  else {
  x =(x - x % 1000 + 1000)*1.05;}
  ++n;}

if(x % 1000 == 0) {cout << x << endl;}
 else {cout << x - x % 1000 + 1000 << endl;}

return 0;
}

