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