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