REVINPUT - Reverse the Input

A simple task is a rare thing in SPOJ these days. If you are looking for one, then this is just the task for you! All you need to do is to reverse the input N times.

Score is the length of your solution.

Input

The first lines of the input is an integer N (1 <= N <= 100). Next follows the input consisting of ASCII characters. The input is terminated by EOF. You may assume that length of each word is less then 1024 and maximum number of words can be never more than 1024.

Output

The input reversed N times with at least a space/newline between any two words of your output.

Example

Input:
2
fox jumps over the lazy dog.

Output:
.god .god yzal yzal eht eht revo revo spmuj spmuj xof xof
Input:
1
It matters not how strait the gate,
How charged with punishments the scroll.
I am the master of my fate:
I am the captain of my soul.

Output:
.luos ym fo niatpac eht ma I
:etaf ym fo retsam  eht ma I
.llorcs eht stnemhsinup htiw degrahc woH
,etag eht tiarts woh ton srettam tI

Added by::(){ :|: & };:
Date:2010-08-13
Time limit:1s
Source limit:1000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: SCM qobi

hide comments
2010-09-01 13:25:33 :(){ :|: & };:

Perl 6 is added.
2010-08-15 19:18:33 :(){ :|: & };:
@HWK : Fixed.
2010-08-15 09:29:20 HWK
Why is my Python-solution disappeared from the list of best solutions?
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.