x,y,z=list(map(int,input().split())) if(x*y*z)%3==0: print("yes") else: print("no")