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