fork download
  1. a=list(map(int,input().split()))
  2. print(a)
  3. a.sort()
  4. for i in range(len(a)) :
  5. print(a[i])
  6. a.reverse()
  7. for i in range(len(a)) :
  8. print(a[i], end =" ")
Success #stdin #stdout 0.13s 14192KB
stdin
4 88 -36 11 -3 9


stdout
[4, 88, -36, 11, -3, 9]
-36
-3
4
9
11
88
88 11 9 4 -3 -36