t = tuple(map(str,input().split()))print(f'{t[0]} {t[len(t)-1]} {t[::-1]}')
a b c
a c ('c', 'b', 'a')
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!