#include <stdio.h>


int main(void){
    long debt=1000; // *100yen
    int n;

    scanf("%d", &n);
    for (int i=0; i<n; i++){
        debt *= 1.05;
        if (debt % 10){
            debt += (10 - (debt % 10));
        } 
    }
    printf("%d000", debt);
    return 0;
}