문제
n = int(input()) arr = [] for _ in range(n): arr = list(map(int, input().split(" "))) arr.sort() print(arr[-3])
'''