#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  vector<string> dict;
  int pointer = 0;
  for (;;) {
    if (pointer == S.size() - 2) {
      if (S[pointer] == S[pointer + 1]) {
        dict.push_back(S.substr(pointer, 2));
        break;
      }
    }
    if (pointer == 0) {
      dict.push_back(S.substr(0, 1));
      pointer++;
    }
    if (dict.back().size() == 1) {
      if (S.substr(pointer, 1) != dict.back()) {
        dict.push_back(S.substr(pointer, 1));
        pointer++;
      } else {
        dict.push_back(S.substr(pointer, 2));
        pointer += 2;
      }
    } else {
      dict.push_back(S.substr(pointer, 1));
      pointer++;
    }
    if (pointer > S.size() - 1) {
      break;
    }
  }
  for (int i = 0; i < dict.size(); i++) {
    cout << dict[i] << endl;
  }
  cout << dict.size() << endl;
}
