X, Y, Z = map(int, input().split()) print('No' if (X + Y + Z) % 3 else 'Yes')