#include <bits/stdc++.h>
using namespace std;
int main() {
  string S, str;
  cin >> S;
  int top = 0, length = 1, count = 0;
  while (true) {
    if (top + length == S.length()) {
      count++;
      break;
    }
    str = S.substr(top, length);
    if (str != S.substr(top + length, str.length())) {
      count++;
      top += length;
      length = 1;
      cout << str << endl;
    } else {
      length++;
    }
  }
  cout << count << endl;
}
