fork download
  1. t = tuple(map(str,input().split()))
  2. print(f'{t[0]} {t[len(t)-1]} {t[::-1]}')
Success #stdin #stdout 0.12s 14188KB
stdin
a b c
stdout
a c ('c', 'b', 'a')