a,b,c=map(int,input().split()) a=a*b*c print("Yes" if a%3==0 else "No")