a, b = input().split() c = a + b while c[0] == "0": c = c[1:] print(eval(c))