#include<stdio.h>
#include<string.h>
int main() {
double a;
double b;
int c;
char ch;
double num[300];
while(scanf("%d",&c)) {
if(getchar()=='
'&&c==0)//注意必须这样写
break;
int i=0;
num[0]=c;
while(1) {
scanf("%c%lf",&ch,&b);
if(ch=='/')
num[i]/=b;
else
if(ch=='*')
num[i]*=b;
else
if(ch=='+')
num[++i]=b;
else
num[++i]=-b;
if(getchar()=='
')
break;
}
a=0;
for(int j=0;j<=i;j++)
a+=num[j];
printf("%.2f
",a);
}
return 0;
}