S=raw_input() s=1 x=0 ind=0 if(S[0]=='-'): s=-1 ind+=1 if(S[0]=='+'): ind+=1 while S[ind]!='-' and S[ind]!='+': x*=10 x+=ord(S[ind])-ord('0') ind+=1 x*=s if(S[ind]=='-'): s=+1 ind+=1 if(S[ind]=='+'): s=-1 ind+=1 if(S[ind]=='-'): s*=-1 ind+=1 if(S[ind]=='+'): ind+=1 y=0 for c in S[ind::]: y*=10 y+=ord(c)-ord('0') print x+s*y