#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 10;
int main() {
  int n, one = 0, zero = 0;
  cin >> n;
  string s;
  cin >> s;
  for (int i = 0; i < n; i++) {
    if (s[i] == '1')
      one++;
    else
      zero++;
  }
  if (one != zero) return cout << 1 << endl << s << endl, 0;
  int i = 0, onep = 0, zerop = 0;
  cout << 2 << endl;
  while (onep == zerop || one - onep == zero - zerop) {
    if (s[i] == '0')
      zerop++;
    else
      onep++;
    i++;
  }
  for (int j = 0; j < i; j++) cout << s[j];
  cout << " ";
  for (int j = i; j < n; j++) cout << s[j];
  return 0;
}
