X,Y,Z=map(int,input().split()) n=X*Y*Z if n%3==0: print('Yes') else: print('No')