#include <cstdio>
#include <cmath>
using namespace std;
int main(){
    int n;
    int sum = 100000, is;
    scanf("%d", &n);
    for (int i = 0; i < n; i++) {
        is = ((sum / 20) % 1000 == 0) ? sum / 20 : (sum/20+1000)/1000*1000;
        sum += is;
    }
    printf("%d\n", sum);
}

