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

int main(){ 
    int n;  
    double cath=100000;

    cin>>n; 

    for(int i=1;i<=n;i++){
        cath+=cath*0.05;
        cath=ceil(cath*0.001);
        cath*=1000;
    }
    cout<<cath<<endl;

    return 0;
}