import sys A = list(map(int, sys.stdin.readline().split())) A.sort() print(max(A))print(A.index(max(A)) + 1)
3 29 38 12 57 74 40 85 61
3 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!