3077: 【例74.2】 古风排版

Memory Limit:64 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:Imported
Submit:0 Solved:0

Description

中国的古人写文字,是从右向左竖向排版的。本题就请你编写程序,把一段文字按古风排版。

Input

输入在第一行给出一个正整数 N,是每一列的字符数。第二行给出一个长度不超过 1000 的非空字符串,以回车结束。 1N1000

Output

按古风格式排版给定的字符串,每列 N 个字符(除了最后一列可能不足 N 个)。

Sample Input Copy

4
This is a test case

Sample Output Copy

asa T
st ih
e tsi
 ce s