#P427. 【例74.2】 古风排版
【例74.2】 古风排版
Description
In ancient China, people wrote text vertically from right to left. Please write a program to format a given string in this ancient style.
Input Format
The first line contains a positive integer , the number of characters per column. The second line contains a non-empty string of length not exceeding , ending with a newline. .
Output Format
Format the given string in the ancient style, with characters per column (except possibly the last column, which may have fewer than characters).
Sample
4
This is a test caseasa T
st ih
e tsi
ce s