#include <iostream>
using namespace std;

int main(){
    int n;
    cin>>n;
    int temp = 0,k;
    for(int i = 0; i < n; i++){
        k = (int)(sum * 0.05) % 1000;
        if(k != 0)
            temp = 1000;
        else
            temp = 0;
        sum += sum * 0.05 + temp - k;
    }
    cout<<sum<<endl;
    return 0;
}

