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

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

    cin>>n; 

    for(int i=1;i<=n;i++){
        cath*=1.05;
        if(cath%1000!=0)cath+=1000-cath%1000;
    }
    cout<<cath<<endl;

    return 0;
}