x,y,z=map(int,input().split()) a=x*y*z if a%3==0: print('Yes') else: print('No')