#include
using namespace std;
int main() {
char cOpType;
cin>>cOpType;
int n1,n2;
while (cOpType=='*' || cOpType=='+' || cOpType=='-' || cOpType=='/' || cOpType=='%' || cOpType=='X' || cOpType=='x'){
cin>>n1>>n2;
if(cOpType=='*')
cout<<n1*n2<<endl;
else if(cOpType=='+')
cout<<n1+n2<<endl;
else if(cOpType=='-')
cout<<n1-n2<<endl;
else if(cOpType=='/')
cout<<n1/n2<<endl;
else if(cOpType=='%')
cout<<n1%n2<<endl;
else if(cOpType=='X' or cOpType=='x')
return 0;
cin>>cOpType;
} ;
cout<<"Invalid operation. Try again."<<endl;
return 0;
}