int main(void) {
    int i, n, k;
    scanf("%d",&n);
    i = 100000;
    while (n > 0) {
        i = i * 1.05;
        if(!(i % 1000 == 0))
        {
            k = i % 1000;
            i = i + 1000 - k;
        }
    n--;
    }
    printf("%d\n", i);
    return 0;
}    