#include
using namespace std;
int main() {
long long int a,b,c;
char ch;
do {
cin>>ch;
if(ch=='+'){
cin>>a>>b;
c=a+b;
cout<<c<<endl;
}
else if(ch=='*'){
cin>>a>>b;
c=a*b;
cout<<c<<endl;
}
else if(ch=='-'){
cin>>a>>b;
c=a-b;
cout<<c<<endl;
}
else if(ch=='/' && b!=0){
cin>>a>>b;
c=a/b;
cout<<c<<endl;
}
else if(ch=='%' && b!=0){
cin>>a>>b;
c=a%b;
cout<<c<<endl;
}
else{
cout<<"Invalid operation. Try again."<<endl;}}
while (ch!='x' || ch!='X')
return 0;
}