A,B,C=map(int,input().split()) print("Yes" if (A%3==0)or(B%3==0)or(C%3==0) else "No")