def whowin (first, second):
result = (second - first) if abs(second - first) != 2 else -(second - first)
if result == 0:
print("ничья")
elif result > 0:
print('first win')
else:
print('second win')
def whowin (first, second):
result = (second - first) if abs(second - first) != 2 else -(second - first)
print("first win" if result > 0 else "second win")