#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k = 0, l, m, n, c = 0;
  string s;
  vector<int> v;
  map<int, int> mp;
  scanf("%d", &n);
  cin >> s;
  for (i = 0; i < n; i++) {
    if (s[i] == '0')
      c++;
    else
      k++;
  }
  if (c != k) {
    printf("1\n");
    cout << s << endl;
  } else {
    for (j = 0; j < n - 1; j++) {
      c = 0;
      k = 0;
      for (i = 0; i <= j; i++) {
        if (s[i] == '0')
          c++;
        else
          k++;
      }
      if (c != k) {
        c = 0;
        k = 0;
        for (i = j + 1; i < n; i++) {
          if (s[i] == '0')
            c++;
          else
            k++;
        }
        if (c != k) {
          printf("2\n");
          for (i = 0; i <= j; i++) {
            cout << s[i];
          }
          cout << " ";
          for (i = j + 1; i < n; i++) {
            cout << s[i];
          }
          cout << endl;
          return 0;
        }
      }
    }
  }
}
