#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  cin.get();
  string str;
  getline(cin, str);
  int count_zero = 0, count_one = 0;
  for (int i = 0; i < str.length(); i++) {
    if (str[i] == '1') {
      count_one++;
    } else {
      count_zero++;
    }
  }
  if (count_zero == count_one) {
    bool ok;
    int temp = count_one;
    cout << 2 << endl;
    count_zero = count_one = 0;
    for (int i = 0; i < str.length(); i++) {
      ok = true;
      str[i] == '1' ? count_one++ : false;
      str[i] == '0' ? count_zero++ : false;
      if ((i == str.length() / 2 - 1) &&
          (temp - count_one != temp - count_zero)) {
        ok = false;
        cout << str[i] << ' ';
      } else if ((i == str.length() / 2 - 1) &&
                 (temp - count_one == temp - count_zero)) {
        ok = false;
        cout << str[i] << str[i + 1] << ' ';
        i++;
      }
      if (ok) cout << str[i];
    }
  } else {
    cout << 1 << endl;
    cout << str << endl;
  }
}
