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 CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
long long bigmod(long long b, long long p, long long md) {
  if (p == 0) return 1;
  if (p % 2 == 1) {
    return ((b % md) * bigmod(b, p - 1, md)) % md;
  } else {
    long long y = bigmod(b, p / 2, md);
    return (y * y) % md;
  }
}
int cnt[70];
char getchar(int a) {
  if (a >= 0 && a <= 9)
    return '0' + a;
  else if (a >= 10 && a <= 35)
    return 'a' + a - 10;
  else
    return 'A' + a - 36;
}
int main() {
  int n;
  cin >> n;
  string str;
  cin >> str;
  for (int i = 0; i < n; i++) {
    if (str[i] >= '0' && str[i] <= '9')
      cnt[str[i] - '0']++;
    else if (str[i] >= 'a' && str[i] <= 'z')
      cnt[str[i] - 'a' + 10]++;
    else
      cnt[str[i] - 'A' + 36]++;
  }
  vector<int> odd;
  for (int i = 0; i <= 61; i++) {
    if (cnt[i] % 2) {
      odd.push_back(i);
    }
  }
  if (odd.size() == 0) {
    cout << 1 << endl;
    deque<char> dq;
    for (int i = 0; i <= 61; i++) {
      while (cnt[i]) {
        dq.push_back(getchar(i));
        dq.push_front(getchar(i));
        cnt[i] -= 2;
      }
    }
    for (auto it = dq.begin(); it != dq.end(); it++) cout << *it;
    cout << endl;
    return 0;
  }
  int sz = 0;
  for (int i = odd.size(); i <= str.size(); i += 2) {
    if (str.size() % i) continue;
    sz = str.size() / i;
    if (sz % 2) break;
  }
  int total = str.size() / sz;
  cout << total << endl;
  int c = 0;
  while (c != total) {
    deque<char> dq;
    if (c < odd.size())
      dq.push_back(getchar(odd[c])), cnt[odd[c]]--;
    else {
      for (int i = 0; i <= 61; i++) {
        if (cnt[i]) {
          dq.push_back(getchar(i));
          cnt[i]--;
          break;
        }
      }
    }
    for (int i = 0; i <= 61; i++) {
      while (cnt[i] >= 2 && dq.size() < sz) {
        dq.push_back(getchar(i));
        dq.push_front(getchar(i));
        cnt[i] -= 2;
      }
    }
    for (auto it = dq.begin(); it != dq.end(); it++) cout << *it;
    cout << " ";
    c++;
  }
  return 0;
}