X,Y,Z=map(int,input().split()) if X%3==0 or Y%3==0 or Z%3==0: print("Yes") else: print("No")