data = list(map(int, input().split(" ")))
ans = str(sorted(data[1:])).replace(", ", " ")
if (sum(data[1:])) == ((min(data[1:]) + max(data[1:])) * data[0] * 0.5):
ans = ans[1:-1] + " yes"
else:
ans = ans[1:-1] + " no"
print(ans)
data = list(map(int, input().split(" ")))
ans = f"{min(data[1:])} {max(data[1:])}"
if (sum(data[1:])) == ((min(data[1:]) + max(data[1:])) * data[0] * 0.5):
ans += " yes"
else:
ans += " no"
print(ans)試試3 5 6 7 和 3 1 0 17