A,B=input().split() A=A+B b=1 while(b): b=0 try:a=eval(A) except:A,b=A[1:],1 print(a)