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