int n1,n2,c;
char ch;
cin >>ch;
while(ch!='X'||ch!='x'){
if(ch=='+'){
cin>>n1>>n2;
c=n1+n2;
cout<<c<<endl;
}
else if(ch=='-'){
cin>>n1>>n2;
c=n1-n2;
cout<<c<<endl;
}
else if(ch=='*'){
cin>>n1>>n2;
c=n1*n2;
cout<<c<<endl;
}
else if(ch=='/'){
cin>>n1>>n2;
c=n1/n2;
cout<<c<<endl;
}
else if(ch=='%'){
cin>>n1>>n2;
c=n1%n2;
cout<<c<<endl;
}
else{
cout<<"invalid operation"<<endl;
}
cin>>ch;
}
return 0;
}