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