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