X=int(input()) Y=int(input()) Z=int(input()) N=X*Y*Z if N%3==0: print("Yes") else: print("No")