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