3 1 4 1 5 9 2 6 5 3 5 8
4 9 8
for _ in range(3): row = list(map(int, input().split())) print(max(row))