#include <iostream>
#include <math.h>
using namespace std;

int kiriage(double num){

num/=1000;
num=ceil(num);
num*=1000;
return (int)num;
}

int main(){

double money=100000;
int i,n;

cin >> n;

for(i=0;i<n;i++){
money*=1.05;
money=kiriage(money);
}


cout << money;

}