#include<iostream>
#include<cstdio>
#include<cctype>
#include<cstdlib>
#include<string>
#include<sstream>
#include<vector>
using namespace std;
#define REP(i, j) for(int i = 0; i < j; i++)

int cal(vector<double> &v, string op){
    int right = v[v.size() - 1];
    int left = v[v.size() - 2];
    v.pop_back();
    v.pop_back();
    if(op == "+") return left + right;
    if(op == "-") return left - right;
    if(op == "*") return left * right;
    if(op == "/") return left / right;
}

int main(){
    string str;
    while(getline(cin, str)) cerr <<str <<endl;
    //while(getline(cin, str)){
    //    stringstream ss(str);
    //    vector<double> v;
    //    while(ss >>str){
    //        if(isdigit(str[0])) v.push_back( (double)(atoi(str.c_str())) );
    //        else v.push_back( cal(v, str) );
    //    }
    //    printf("%.7lf\n", v[0]);
    //}
    return 0;
}