# Ввод данных
games = [
    (26, 17),
    (13, 15),
    (19, 11),
    (14, 16)
]

team1 = 0
team2 = 0

for a, b in games:
    if a > b:
        team1 += 1
    elif b > a:
        team2 += 1

if team1 > team2:
    print("1-komanda")
elif team2 > team1:
    print("2-komanda")
else:
    print("ten oiun")  # ничья
