#include <stdio.h>

int main(){
  int money=100000;
  int remain;
  int weeks;
  float temp;
  int i;

  scanf("%d", &weeks);
  for(i=0; i<weeks; i++){
    temp=(float)money*1.05f;
    money=(int)temp;
    remain=money%1000;
    money+=1000-remain;
  }
  printf("%d", money);

  return 0;
}