#include <stdio.h>
int main(){
 int n,i;
 double debt=10000;
 scanf("%d",&n);
 while(n--){
     debt += debt*0.05;
     for(i=10;i<1000;i*=10){
         if(n%i!=0){
             debt += 1000;
             break;
         }
     }
 }
 printf("%lf\n",debt);
 return 0;
}