N = int(input()) trees = [int(input()) for _ in range(N)] print(trees.index(max(trees)) + 1)
5 200 157 362 965 145
4
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!