An input text consists of one or more words separated from each other by one or more spaces and terminated more spaces followed by a point. Input should be read from, and including, the first letter of the first word, up to and including the terminating point.
The output text is to be produced such that successive words are separated by a single space with the last word being terminated by a single point. Odd words are copied in reverse order while even words are kept as it is.
For example, the input string
: get busy living or get busy dying.
becomes
: get ysub living ro get ysub dying.