#yuki1337 x,y,z=map(int,input().split()) if (x+y+z)%3: print('No') else: print('Yes')