#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
using namespace std;

int main()
{
	string opr{};
	double op1{};
	double op2{};
	const string operacje{ "+-/*" };

	while (cin >> opr >> op1 >> op2)
	{
		if (operacje.find(opr) != string::npos){
			vector<double> wynik{ op1 + op2, op1 - op2, op1 / op2, op1*op2 };
			cout << opr << " " << op1 << " " << op2 << endl;
			cout << wynik[operacje.find(opr)] << endl;
		}
		else
			cout << "Brak impementacji operatora " << opr << endl;
	}
}