a, b, c = [int(x) for x in input().split()] if a * b * c % 6 == 0: print("Yes") else: print("No")