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