Problem: Kolya has a string s of length n consisting of lowercase and uppercase Latin letters and digits.

He wants to rearrange the symbols in s and cut it into the minimum number of parts so that each part is a palindrome and all parts have the same lengths. A palindrome is a string which reads the same backward as forward, such as madam or racecar.

Your task is to help Kolya and determine the minimum number of palindromes of equal lengths to cut s into, if it is allowed to rearrange letters in s before cuttings.

Input

The first line contains an integer n (1 ≤ n ≤ 4·105) — the length of string s.

The second line contains a string s of length n consisting of lowercase and uppercase Latin letters and digits.

Output

Print to the first line an integer k — minimum number of palindromes into which you can cut a given string.

Print to the second line k strings — the palindromes themselves. Separate them by a space. You are allowed to print palindromes in arbitrary order. All of them should have the same length.

Examples

Input

6
aabaac


Output

2
aba aca 

Input

8
0rTrT022


Output

1
02TrrT20 

Input

2
aA


Output

2
a A 

Solution (in JAVA):

Solution:
import java.io.*;
import java.util.*;

public class CF883H extends PrintWriter {
	CF883H() { super(System.out, true); }
	Scanner sc = new Scanner(System.in);
	public static void main(String[] $) {
		CF883H o = new CF883H(); o.main(); o.flush();
	}

	static final int A = 26 + 26 + 10;
	int[] kk = new int[A];
	byte a2c(int a) {
		int c;
		if (a < 26)
			c = 'a' + a;
		else if (a < 26 + 26)
			c = 'A' + a - 26;
		else
			c = '0' + a - 26 - 26;
		return (byte) c;
	}
	int c2a(byte c) {
		int a;
		if ('a' <= c && c <= 'z')
			a = c - 'a';
		else if ('A' <= c && c <= 'Z')
			a = c - 'A' + 26;
		else
			a = c - '0' + 26 + 26;
		return a;
	}
	void fill(byte[] bb, int m) {
		int l = 0, r = m - 1;
		for (int a = 0; a < A && l < r; a++)
			while (kk[a] >= 2 && l < r) {
				kk[a] -= 2;
				bb[l++] = bb[r--] = a2c(a);
			}
		if (l == r) {
			int a = 0;
			while (a < A && kk[a] % 2 == 0)
				a++;
			if (a == A) {
				a = 0;
				while (a < A && kk[a] == 0)
					a++;
			}
			kk[a]--;
			bb[l] = a2c(a);
		}
	}
	void main() {
		int n = sc.nextInt();
		byte[] cc = sc.next().getBytes();
		for (int i = 0; i < n; i++) {
			int a = c2a(cc[i]);
			kk[a]++;
		}
		int o = 0;
		for (int a = 0; a < A; a++)
			if (kk[a] % 2 == 1)
				o++;
		int m;
		if (o == 0)
			m = n;
		else {
			m = n / o;
			if (m % 2 == 0)
				m--;
			while (n % m != 0)
				m -= 2;
		}
		byte[] bb = new byte[m + 1]; bb[m] = ' ';
		int k = n / m;
		println(k);
		while (k-- > 0) {
			fill(bb, m);
			print(new String(bb));
		}
		println();
	}
}