double atof();char s[];double x[9],*p=x;main(c){for(;~scanf("%s%c",s,&c);c%4&&printf("%.8g\n",*p))*s>90?*--p=*s>99?(int)*p%(int)p[1]:pow(*p,p[1]):*s>47?*++p=atof(s):*s>46?*p--?*p/=p[1]:(c=puts("ERR")):(*--p=*s>44?*p-p[1]:*s%2?*p+p[1]:*p*p[1]);}