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