intmain(){inti,c;doublex;longdoubleresult=0;intn=scanf("%lF",&x);if(n!=1){printf("Nepodarilo sa nacitat x\n");return0;}longdouble*array;array=(longdouble*)malloc(10000);for(i=0,c=1;i<c;i++,c++){intb=scanf("%Lf",&array[i]);if(b==EOF||b!=1){break;}}for(intj=0;i>0;i--,j++){result+=(longdouble)(array[j]*pow(x,i-1));}if(result>40000&&result!=(longlong)(result)){result-=0.01;}printf("Vysledok je :%.2Lf\n",result);free(array);return0;}