Accept a sequence of comma-separated words as input. Reverse the sequence and print it as output.
Input
A single line holding one or more words separated by commas, with no spaces around the commas.
Output
A single line: the same words in reverse order, separated by commas. There must be no comma after the last word.
Example
Input
1,2,3,4,5
Output
5,4,3,2,1
Write a complete program: read the input with input() and print the result with print().
Input
1,2,3,4,5
Output
5,4,3,2,1