#include <bits/stdc++.h>
using namespace std;
queue<double> Num;
queue<char> Sig;
#define MAX -2000000000
double Evit(){
double a=Num.front();
Num.pop();
if(Sig.empty()) return a;
while(Sig.front()=='*' || Sig.front()=='/'){
if(Sig.front()=='*'){
a=a*Num.front();
}else{
if(Num.front()==0) return MAX;
a=a/Num.front();
}
Num.pop();
Sig.pop();
if(Sig.empty()) return a;
}
return a;
}
int main()
{
string s;
while(cin>>s){
double ans=0;
stringstream S(s);
double num;
char sig;
while(S>>num){
Num.push(num);
//cout<<"num:"<<num<<endl;
if(S>>sig){
Sig.push(sig);
//cout<<"sig:"<<sig<<endl;
}
}
double a=Num.front();
Num.pop();
bool com=true;
while(!Sig.empty()){
char si=Sig.front();
Sig.pop();
if(si=='+'){
double b=Evit();
//cout<<"hi"<<endl;
if(b==MAX){
com=false;
break;
}
a=a+b;
//cout<<"a:"<<a<<endl;
}else if(si=='-'){
double b=Evit();
if(b==MAX){
com=false;
break;
}
a=a-b;
}else if(si=='*'){
double b=Evit();
if(b==MAX){
com=false;
break;
}
a=a*b;
//cout<<"b:"<<b<<endl;
}else if(si=='/'){
double b=Evit();
if(b==MAX || b==0){
com=false;
break;
}
a=a/b;
}
//cout<<"que"<<endl;
//cout<<"so:"<<Sig.empty()<<endl;
//system("pause");
}
if(com){
cout<<fixed<<setprecision(2)<<a<<endl;
}else{
cout<<"division entre cero"<<endl;
}
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CiAKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKcXVldWU8ZG91YmxlPiBOdW07CnF1ZXVlPGNoYXI+IFNpZzsKI2RlZmluZSBNQVggLTIwMDAwMDAwMDAKZG91YmxlIEV2aXQoKXsKICAgIGRvdWJsZSBhPU51bS5mcm9udCgpOwogICAgTnVtLnBvcCgpOwogICAgaWYoU2lnLmVtcHR5KCkpIHJldHVybiBhOwogICAgd2hpbGUoU2lnLmZyb250KCk9PScqJyB8fCBTaWcuZnJvbnQoKT09Jy8nKXsKICAgICAgICBpZihTaWcuZnJvbnQoKT09JyonKXsKICAgICAgICAgICAgYT1hKk51bS5mcm9udCgpOwogICAgICAgIH1lbHNlewogICAgICAgICAgICBpZihOdW0uZnJvbnQoKT09MCkgcmV0dXJuIE1BWDsKICAgICAgICAgICAgYT1hL051bS5mcm9udCgpOwogICAgICAgIH0KICAgICAgICBOdW0ucG9wKCk7CiAgICAgICAgU2lnLnBvcCgpOwogICAgICAgIGlmKFNpZy5lbXB0eSgpKSByZXR1cm4gYTsKICAgIH0KICAgIHJldHVybiBhOwp9CiAKaW50IG1haW4oKQp7CiAgICBzdHJpbmcgczsKICAgIHdoaWxlKGNpbj4+cyl7CiAgICAgICAgZG91YmxlIGFucz0wOwogICAgICAgIHN0cmluZ3N0cmVhbSBTKHMpOwogICAgICAgIGRvdWJsZSBudW07CiAgICAgICAgY2hhciBzaWc7CiAgICAgICAgd2hpbGUoUz4+bnVtKXsKICAgICAgICAgICAgTnVtLnB1c2gobnVtKTsKICAgICAgICAgICAgLy9jb3V0PDwibnVtOiI8PG51bTw8ZW5kbDsKICAgICAgICAgICAgaWYoUz4+c2lnKXsKICAgICAgICAgICAgICAgIFNpZy5wdXNoKHNpZyk7CiAgICAgICAgICAgICAgICAvL2NvdXQ8PCJzaWc6Ijw8c2lnPDxlbmRsOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGRvdWJsZSBhPU51bS5mcm9udCgpOwogICAgICAgIE51bS5wb3AoKTsKICAgICAgICBib29sIGNvbT10cnVlOwogICAgICAgIHdoaWxlKCFTaWcuZW1wdHkoKSl7CiAgICAgICAgICAgIGNoYXIgc2k9U2lnLmZyb250KCk7CiAgICAgICAgICAgIFNpZy5wb3AoKTsKICAgICAgICAgICAgaWYoc2k9PScrJyl7CiAgICAgICAgICAgICAgICBkb3VibGUgYj1Fdml0KCk7CiAgICAgICAgICAgICAgICAvL2NvdXQ8PCJoaSI8PGVuZGw7CiAgICAgICAgICAgICAgICBpZihiPT1NQVgpewogICAgICAgICAgICAgICAgICAgIGNvbT1mYWxzZTsKICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGE9YStiOwogICAgICAgICAgICAgICAgLy9jb3V0PDwiYToiPDxhPDxlbmRsOwogICAgICAgICAgICB9ZWxzZSBpZihzaT09Jy0nKXsKICAgICAgICAgICAgICAgIGRvdWJsZSBiPUV2aXQoKTsKICAgICAgICAgICAgICAgIGlmKGI9PU1BWCl7CiAgICAgICAgICAgICAgICAgICAgY29tPWZhbHNlOwogICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgYT1hLWI7CiAgICAgICAgICAgIH1lbHNlIGlmKHNpPT0nKicpewogICAgICAgICAgICAgICAgZG91YmxlIGI9RXZpdCgpOwogICAgICAgICAgICAgICAgaWYoYj09TUFYKXsKICAgICAgICAgICAgICAgICAgICBjb209ZmFsc2U7CiAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBhPWEqYjsKICAgICAgICAgICAgICAgIC8vY291dDw8ImI6Ijw8Yjw8ZW5kbDsKICAgICAgICAgICAgfWVsc2UgaWYoc2k9PScvJyl7CiAgICAgICAgICAgICAgICBkb3VibGUgYj1Fdml0KCk7CiAgICAgICAgICAgICAgICBpZihiPT1NQVggfHwgYj09MCl7CiAgICAgICAgICAgICAgICAgICAgY29tPWZhbHNlOwogICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgYT1hL2I7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgLy9jb3V0PDwicXVlIjw8ZW5kbDsKICAgICAgICAgICAgLy9jb3V0PDwic286Ijw8U2lnLmVtcHR5KCk8PGVuZGw7CiAgICAgICAgICAgIC8vc3lzdGVtKCJwYXVzZSIpOwogICAgICAgIH0KICAgICAgICBpZihjb20pewogICAgICAgICAgICBjb3V0PDxmaXhlZDw8c2V0cHJlY2lzaW9uKDIpPDxhPDxlbmRsOwogICAgICAgIH1lbHNlewogICAgICAgICAgICBjb3V0PDwiZGl2aXNpb24gZW50cmUgY2VybyI8PGVuZGw7CiAgICAgICAgfQogICAgfQogICAgcmV0dXJuIDA7Cn0=