#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,ans;char c;
cin>>a>>b>>c;
if(c==43)ans=a+b;
else if(c==45)ans=a-b;
else if(c==34)ans=a*b;
else if(c==47)
{
if(b!=0)ans=a/b;
else
{
printf("Divided by zero!");
return 0;
}
}
if(c!=43&&c!=45&&c!=34&&c!=47)
{
printf("Invalid operator!");
return 0;
}
printf("%d",ans);
return 0;
}