#include <bits/stdc++.h>
using namespace std;
signed main() {
  string s;
  cin >> s;
  string t1, t2;
  int ret = 0, n = s.size(), index = n / 2 + 1;
  while (index > 0) {
    t1 += "01";
    t2 += "10";
    index--;
  }
  cout << t1 << '\n' << t2 << '\n';
  if (s[0] == '0') {
    for (int i = 0; i < n; i += 2) {
      if (s[i] != t1[i]) ret++;
    }
    for (int i = 1; i < n; i += 2) {
      if (s[i] != t1[i]) ret++;
    }
  } else {
    for (int i = 0; i < n; i += 2) {
      if (s[i] != t2[i]) ret++;
    }
    for (int i = 1; i < n; i += 2) {
      if (s[i] != t2[i]) ret++;
    }
  }
  printf("%d\n", ret);
  return 0;
}
