#include<cstdio>
int main(){
    int n;
    int sum=100000;
    scanf("%d",&n);
    for(int i=0;i<n;i++){
        sum+=sum*0.05;
        if(sum%1000) sum=(sum/1000+1)*1000;
    }
    printf("%d\n",sum);
}