x=int(input()) y=int(input()) z=int(input()) a=x*y*z if a%3==0: print("yes") else: print("no")