#include <cstdio>

int main(){
    int debt=100000,n;
    scanf("%d", &n);

    for(int i = 0; i < n; i++){
        debt = debt * 1.05;
        if(debt - (debt/1000)*1000 > 0){
            debt = (debt/1000)*1000 + 1000;
        }
    }

    printf("%d\n",debt);
    return 0;
}