{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"Cryptography is a field of computer science where some data is hidden from unwanted adversaries using different interesting methods. There is a method called A1Z26 Cipher where each character of a string is converted into some equivalent 2-digit number, like A \u003d 01, B \u003d 02 and so on. So the encoded form of the string \"CUET\" is \"03210520\".\u003cbr\u003e\u003cbr\u003e\n Cryptography is used to change classified data so that only the people this data is meant for are able to read that data. Like when my good friend A wrote a confession to his good friend B, he used some kind of cipher so that his confession will be only understandable to his good friend B, who, herself, is also a great programmer, just like A. \u003cbr\u003e\u003cbr\u003e\nOur very own Fariha has invented a new method of cryptography, called \u003cb\u003eBlock Reverse\u003c/b\u003e. In this method a string is reversed in blocks. For example, consider this string: \u003cbr\u003e\n“\u003cb\u003eTOBENU\u003c/b\u003eMBERON\u003cb\u003eEWEMEE\u003c/b\u003eTAGAIN\u003cb\u003eANDAGA\u003c/b\u003eINUNDE\u003cb\u003eRBLUEI\u003c/b\u003eCPCSKY” \u003cbr\u003e\nThis string has length 48. We have divided into 8 blocks of equal length and so the length of each\nblock is 6. Now we can reverse each of these eight blocks to get a new string: \u003cbr\u003e\n“\u003cb\u003eUNEBOT\u003c/b\u003eNOREBM\u003cb\u003eEEMEWE\u003c/b\u003eNIAGAT\u003cb\u003eAGADNA\u003c/b\u003eEDNUNI\u003cb\u003eIEULBR\u003c/b\u003eYKSCPC” \u003cbr\u003e\u003cbr\u003e\nNow, she needs enthusiastic junior programmers who can help her develop a system where every data is encrypted with her \u003cb\u003e Block Reverse \u003c/b\u003e algorithm. Are you up for it? \u003cbr\u003e\u003cbr\u003e\nGiven the string and number of blocks in it, you have to write a program which will \u003cb\u003eBlock Reverse\u003c/b\u003e it, and prove that you are one of the hotshot programmers in campus."}},{"title":"Input","value":{"format":"HTML","content":"The input file contains at most 101 lines of inputs. Each line contains at integer B (B \u003c 10) which\ndenotes the number of blocks followed by a string whose length is a multiple of B. The length of the\nstring is not greater than 100. The string contains only alpha numerals. Input is terminated by a line\ncontaining a single zero."}},{"title":"Output","value":{"format":"HTML","content":"For each line of input produce one line of output which contains the block reversed string."}},{"title":"Sample Input","value":{"format":"HTML","content":"3 ABCEHSHSH \u003cbr\u003e\n5 FA0ETASINAHGRI0NATWON0QA0NARI0\u003cbr\u003e\n0"}},{"title":"Sample Output","value":{"format":"HTML","content":"CBASHEHSH\u003cbr\u003e\nATE0AFGHANISTAN0IRAQ0NOW0IRAN0\u003cbr\u003e"}}]}