a,b,c = map(int,input().split()) if (a*b*c)%3 == 0 and (a*b*c) != 0: print("Yes") else: print("No")