X,Y,Z=map(int,input().split())
n=X*Y*Z
if n%3==0:
    print("yes")
else:
    print("no")