# Author: Steven Carr # Last Edited: November 2021 # Reverses a set of strings from standard input import stdio # Accept all the strings from standard input and store them in a list a. a = list(stdio.readLine().split()) # Reverse a. for string in range(len(a)//2): # Iterate over half of the list a... # Exchange element at i in a with the element at len(a) - i - 1. temp = a[len(a)-string-1] a[len(a)-string-1] = a[string] a[string] = temp # Write a to standard output. for string in range(len(a)): if string != len(a)-1: # If i is not the last column, write a[i] with a space after. stdio.write(a[string] + ' ') else: # Otherwise, write the element with a newline after. stdio.writeln(a[string])