fork download
  1. import sys
  2.  
  3. A = list(map(int, sys.stdin.readline().split()))
  4.  
  5. A.sort()
  6.  
  7. print(max(A))
  8. print(A.index(max(A)) + 1)
Success #stdin #stdout 0.03s 9804KB
stdin
3
29
38
12
57
74
40
85
61
stdout
3
1