#include
using namespace std;
int main()
{
char ch;
int n1, n2;
while (ch != 'x')
{
cin >> ch;
if(ch=='x' or ch=='X')
{
break;
}
int n;
if (ch == '+')
{
cin >> n1;
cin >> n2;
n = n1 + n2;
cout << n << endl;
}
else if (ch == '-')
{
cin >> n1;
cin >> n2;
n = n1 - n2;
cout << n << endl;
}
else if (ch == '*')
{
cin >> n1;
cin >> n2;
n = n1 * n2;
cout << n << endl;
}
else if (ch == '/')
{
cin >> n1;
cin >> n2;
n = n1 / n2;
cout << n << endl;
}
else
{
cout<<"Invalid operation";
}
}
}