#include<cstdio>

int main() {
    int i, temp;
    int nah = 100000;
    scanf("%d", &i);
    for (; i > 0; i-- ) {
        nah+= nah*5/100;
        temp = nah % 1000;
        if ( temp != 0 ) {
             nah = nah - temp + 1000;
        }
    }
    printf("%d\n", nah);
    return 0;
}