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