fork(1) download
  1. pole = [int(x) for x in input().split()]
  2. print(pole)
  3.  
  4. print(max(pole))
  5.  
  6. maxim = pole[0]
  7. N = len(pole)
  8. for i in range(1,N):
  9. if (pole[i] > maxim) :
  10. maxim = pole[i]
  11.  
  12. print(maxim)
  13.  
  14. maxim = pole[0]
  15. for x in pole:
  16. if x > maxim:
  17. maxim = x
  18. print(maxim)
Success #stdin #stdout 0.01s 27712KB
stdin
4 2 3 8 1 5 4 2
stdout
[4, 2, 3, 8, 1, 5, 4, 2]
8
8
8