x,y,z=map(int,input().split())
print('YNeos'[(x*y*z)%3>0::2])