#include <iostream>
#include <stdio.h>
#include <cmath>
#include <algorithm>
using namespace std;

int main(){
  int m = 100000,n;
  cin >> n;
  for(int i = 0 ; i < n ; i++ ){
    m += m*0.05; 
    if(m%1000 != 0)m-=m%1000,m+=1000; 
  }
  cout << m << endl;
}