test_case = int(input())
for _ in range(test_case):
    num_list = list(map(int, input().split()))
    num_list.sort(reverse=True)
    print(num_list[2])

ea21f9e5ce204b3fbacc9a66cc5af8d073996fb3
<mask token>

<mask token>
for _ in range(test_case):
    num_list = list(map(int, input().split()))
    num_list.sort(reverse=True)
    print(num_list[2])

test_case = int(input())
for _ in range(test_case):
    num_list = list(map(int, input().split()))
    num_list.sort(reverse=True)
    print(num_list[2])
