#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
char opr;
cin>>a>>b>>opr;
if(opr=='+'){
cout<<a+b;
}else if(opr=='-'){
cout<<a-b;
}else if(opr=='*'){
cout<<a*b;
}else if(opr=='/'){
if(b==0) cout<<"Divided by zero!";
else cout<<a/b;
}else{
cout<<"Invalid operator!";
}
return 0;
}