Write a program that reads a sequence of words and prints, in reverse order, the first half of the list.
Input consists of a sequence of words.
If denotes the total number of words, print the first words of the original sequence, in reverse order, and one per line.
For the sake of practice, use recursion (not arrays).
Input
jordi mireia arnau
Output
jordi
Input
dolphins octopuses squid sharks whales piranhas
Output
squid octopuses dolphins