#include <bits/stdc++.h>
int main() {
  char ch[1000];
  int n, num1 = 0, num0 = 0, x, num_1 = 0, num_0 = 0, len, i;
  scanf("%d%s", &n, &ch);
  len = strlen(ch);
  for (i = 0; i < n; i++) {
    if (ch[i] == '0') num0++;
    if (ch[i] == '1') num1++;
  }
  if (num0 != num1) {
    printf("1\n");
    printf("%s", ch);
  } else {
    printf("2\n");
    if (num0 > num1) {
      x = num0 - num1;
      for (i = 0; 1; i++) {
        if (ch[i] == '0') num_0++;
        if (ch[i] == '1') num_1++;
        printf("%c", ch[i]);
        if (num_0 - num_1 != x) break;
      }
      printf(" ");
      for (i++; i < len; i++) printf("%c", ch[i]);
    } else
      x = num1 - num0;
    for (i = 0; 1; i++) {
      if (ch[i] == '0') num_0++;
      if (ch[i] == '1') num_1++;
      printf("%c", ch[i]);
      if (num_1 - num_0 != x) break;
    }
    printf(" ");
    for (i++; i < len; i++) printf("%c", ch[i]);
  }
}
