#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  int ans = 0;
  string t = "";
  for (int i = 0; i < (s.size()); i++) {
    for (int j = 1; i + j <= s.size(); j++) {
      string u = s.substr(i, j);
      if (t != u) {
        ans++;
        i += j - 1;
        t = u;
        cout << u << endl;
        break;
      }
    }
  }
  cout << ans << endl;
  return 0;
}
