#include<bits/stdc++.h>
using namespace std;
int m=0,i=0,h,b,c,d,u=0,k=0,x,y,q=0;
string s;
int main(){
getline(cin,s);
m=s.size();
h=s.find('?');
d=s.find('=');
if(s.find('+')<m)
{
b=s.find('+');
u=1;
}
else if(s.find('-')<m)
{
b=s.find('-');
}
while(s[i]<'0'||s[i]>'9')
{
i++;
}
x=s[i]-'0';
i++;
while(s[i]>='0'&&s[i]<='9')
{
x=x*10+s[i]-'0';
i++;
}
while(s[i]<'0'||s[i]>'9')
{
i++;
}
y=s[i]-'0';
i++;
while(s[i]>='0'&&s[i]<='9')
{
y=y*10+s[i]-'0';
i++;
}
if(h>d)
{
cout<<x+y<<endl;
return 0;
}
if(h<b&&u==1)
{
cout<<y-x<<endl;
return 0;
}
if(h<b&&u==0)
{
cout<<y+x<<endl;
return 0;
}
if(u==1)
{
cout<<y-x<<endl;
return 0;
}
cout<<x-y<<endl;
return 0;
}