a, b = input().split(" + ") b, c = b.split(" = ") if int(a) + int(b) == int(c): print("YES") else: print("NO")