#include <iostream>
#include <map>
#include <functional>
int
main(int argc, char** argv)
{
std::map<char, std::function<double(double, double)>> ch2f{
{'+', [] (double lhs, double rhs) -> auto { return lhs + rhs; }},
{'*', [] (double lhs, double rhs) -> auto { return lhs * rhs; }},
{'/', [] (double lhs, double rhs) -> auto { return lhs / rhs; }},
{'-', [] (double lhs, double rhs) -> auto { return lhs - rhs; }}
};
double lhs, rhs;
char op;
std::cin >> lhs >> op >> rhs;
std::cout << ch2f[ op ](lhs, rhs) << std::endl;
std::cin >> lhs >> op >> rhs;
std::cout << ch2f[ op ](lhs, rhs) << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWFwPgojaW5jbHVkZSA8ZnVuY3Rpb25hbD4KCmludAptYWluKGludCBhcmdjLCBjaGFyKiogYXJndikKewoJc3RkOjptYXA8Y2hhciwgc3RkOjpmdW5jdGlvbjxkb3VibGUoZG91YmxlLCBkb3VibGUpPj4gY2gyZnsKCQl7JysnLCBbXSAoZG91YmxlIGxocywgZG91YmxlIHJocykgLT4gYXV0byB7IHJldHVybiBsaHMgKyByaHM7IH19LAoJCXsnKicsIFtdIChkb3VibGUgbGhzLCBkb3VibGUgcmhzKSAtPiBhdXRvIHsgcmV0dXJuIGxocyAqIHJoczsgfX0sCgkJeycvJywgW10gKGRvdWJsZSBsaHMsIGRvdWJsZSByaHMpIC0+IGF1dG8geyByZXR1cm4gbGhzIC8gcmhzOyB9fSwKCQl7Jy0nLCBbXSAoZG91YmxlIGxocywgZG91YmxlIHJocykgLT4gYXV0byB7IHJldHVybiBsaHMgLSByaHM7IH19Cgl9OwoJZG91YmxlIGxocywgcmhzOwoJY2hhciBvcDsKCXN0ZDo6Y2luID4+IGxocyA+PiBvcCA+PiByaHM7CglzdGQ6OmNvdXQgPDwgY2gyZlsgb3AgXShsaHMsIHJocykgPDwgc3RkOjplbmRsOwoJCglzdGQ6OmNpbiA+PiBsaHMgPj4gb3AgPj4gcmhzOwoJc3RkOjpjb3V0IDw8IGNoMmZbIG9wIF0obGhzLCByaHMpIDw8IHN0ZDo6ZW5kbDsKfQ==