fork download
  1. x=input()[::-1]
  2. while x[5:]:x.remove(min(x))
  3. print x[::-1]
Success #stdin #stdout 0.01s 8976KB
stdin
[6, 3, 2, 0, 69, 22, 0, 37, 0, 2, 1, 0, 0, 0, 5, 0, 1, 2, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 2]
stdout
[6, 69, 22, 37, 5]