#include
using namespace std;
int main() {
char ch;
int n,m;
cin >> ch;
if(ch=='x' || ch=='X'){
return 0;
}
do {
if(ch=='x' || ch=='X'){
return 0;
}
switch (ch) {
case '+': cin >>n>>m;
cout << n+m << endl;
break;
case '-': cin >>n>>m;
cout << n-m<< endl;
break;
case '*': cin >>n>>m;
cout << n*m<< endl;
break;
case '/': cin >>n>>m;
cout << n/m<< endl;
break;
default : cout << "Invalid operation"<< endl;
break;
}
cin >> ch;
}while(ch!='x' || ch!='X');
return 0;
}