import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class encipher {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		String line;
		while (!(line = reader.readLine()).equals("0")) {
			int a = Integer.parseInt(line);
			line = reader.readLine();
			line = line.replaceAll(" ", "");
			line = line.toUpperCase();
			int delka = line.length();
			delka /= a;
			String[] subs = new String[a];
			int start = 0;
			int prodlouzeny = line.length()%a;
			for(int i=0; i<a; i++){
				if(i<prodlouzeny){
					subs[i] = line.substring(start, start+delka+1);
					start = start+delka+1;
				}
				else{
					subs[i] = line.substring(start, start+delka);
					start += delka;
				}
				
			}
			
			StringBuffer buffer = new StringBuffer("");
			
			for(int i=0; i<delka; i++){
				for(int j=0; j<a; j++){
					buffer.append(subs[j].charAt(i));
				}
			}
			for(int i=0; i<prodlouzeny; i++){
				buffer.append(subs[i].charAt(subs[i].length()-1));
			}
			
			System.out.println(buffer);
		}

	}

}
