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