a, b = input().split() s = a + b while len(s) > 1 and s[0] == "0": s = s[1:] print(eval(s))