x, y, z = map(int, input().split()) ans = x * y * z if ans % 3 == 0: print("Yes") else: print("No")