vasis123

Untitled

Sep 20th, 2020
709
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. a = [int(x) for x in input().split()]
  3.  
  4. max_el = max(a)
  5. min_el = min(a)
  6. index_max = a.index(max_el)
  7. index_min = a.index(min_el)
  8. a[index_max] = min_el
  9. a[index_min] = max_el
  10.  
  11. print(*a)
RAW Paste Data