#include
#include
using namespace std;
int main()
{
int x, y; char c;
cin >> x >> y >> c;//请先输入两个计算数,再输入运算符
if (c == '+' || '-' || '*' || '/')
{
if (c == '/'&& y== 0)
cout << "Divided by zero!" << endl;
else
{
switch (c)
{
case '+':cout << x + y << endl; break;
case '-':cout << x - y << endl; break;
case '*':cout << x * y << endl; break;
default:cout << x / y << endl;
}
}
}
else
cout << "Invalid operator!" << endl;
return 0;
}