class A{
static void Main (string[]s){
var n=true;
var o="";
var r=0F;
foreach(var t in s)
{
if(n){
var v=float.Parse(t);
if(o=="")r=v;
if(o=="+")r+=v;
if(o=="-")r-=v;
if(o=="*")r*=v;
if(o=="/")r/=v;
}
o=t;
n=!n;
}
System.Console.Write(r);
}
}
Y2xhc3MgQXsKICAgIHN0YXRpYyB2b2lkIE1haW4gKHN0cmluZ1tdcyl7CiAgICAgICAgdmFyIG49dHJ1ZTsKICAgICAgICB2YXIgbz0iIjsKICAgICAgICB2YXIgcj0wRjsKCiAgICAgICAgZm9yZWFjaCh2YXIgdCBpbiBzKQogICAgICAgIHsKICAgICAgICAgICAgaWYobil7CiAgICAgICAgICAgICAgICB2YXIgdj1mbG9hdC5QYXJzZSh0KTsKICAgICAgICAgICAgICAgIGlmKG89PSIiKXI9djsKICAgICAgICAgICAgICAgIGlmKG89PSIrIilyKz12OwogICAgICAgICAgICAgICAgaWYobz09Ii0iKXItPXY7CiAgICAgICAgICAgICAgICBpZihvPT0iKiIpcio9djsKICAgICAgICAgICAgICAgIGlmKG89PSIvIilyLz12OwogICAgICAgICAgICB9CiAgICAgICAgICAgIG89dDsKICAgICAgICAgICAgbj0hbjsKICAgICAgICB9CiAgICAgICAgU3lzdGVtLkNvbnNvbGUuV3JpdGUocik7CiAgICB9Cn0KCg==