a=sum(map(int,input().split())) print("Yes" if a%3<1 else "No")