fork(1) download
  1. # your code goes here
  2. from typing import List
  3. a: List[int] = [int(input()) for j in range(5)]
  4. max_1, max_2 = sorted(a)[-1], sorted(a)[-2]
  5. print (a.index(max_1))
  6. print (a.index(max_2))
Success #stdin #stdout 0.02s 9868KB
stdin
1
2
3
4
5
stdout
4
3