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