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