X=int(input()) Y=int(input()) Z=int(input()) a=X*Y*Z if a%3==0: print("yes") else: print("no")