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