#include <bits/stdc++.h>
const long long INF = (long long)1e9;
const long long MOD = (long long)1e9 + 7;
const long long tyo = (long long)1e12 * 2;
using namespace std;
int main() {
  string S, t = "";
  long long cnt = 0, n = 0;
  cin >> S;
  while (n < S.size()) {
    string A;
    A = S.substr(n, 1);
    if (t != A) {
      n++;
    } else {
      A = S.substr(n, 2);
      if (A.size() != 2) cnt--;
      n += 2;
    }
    cnt++;
    cout << A << endl;
    t = A;
  }
  cout << cnt << endl;
}
