#include <bits/stdc++.h>
using namespace std;
int check(string s, int i, int n) {
  int cnt1 = 0, cnt2 = 0, cnt3 = 0, cnt4 = 0;
  for (int x = 0; x < i; x++) {
    if (s[x] == '1')
      cnt1++;
    else
      cnt2++;
  }
  for (int x = i; x < n; x++) {
    if (s[x] == '1')
      cnt3++;
    else
      cnt4++;
  }
  if (cnt1 != cnt2 && cnt3 != cnt4)
    return 1;
  else
    return 0;
}
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  int p = 0, q = 0;
  for (int a = 0; a < n; a++) {
    if (s[a] == '1')
      p++;
    else
      q++;
  }
  if (p != q || n == 1) {
    cout << "1" << endl;
    cout << s;
    return 0;
  }
  int i;
  for (i = 1; i < n; i++) {
    if (check(s, i, n))
      break;
    else
      continue;
  }
  cout << "2" << endl;
  for (int a = 0; a < i; a++) cout << s[a];
  cout << " ";
  for (int a = i; a < n; a++) cout << s[a];
  return 0;
}
