N = [int(input()) for i in range(9)]
N = [int(input()) for i in range(9)]
print(max(N))
print(N.index(max(N)) + 1)

cdff4de4155d8799ddb03159c13cf7f3c6b2ba03
<mask token>

<mask token>
print(max(N))
print(N.index(max(N)) + 1)

N = [int(input()) for i in range(9)]
N = [int(input()) for i in range(9)]
print(max(N))
print(N.index(max(N)) + 1)
