#include <bits/stdc++.h>
int main() {
  char s[200005];
  scanf("%s", s);
  int start = 0, end = 1;
  int length = strlen(s);
  int count = 0;
  while (end <= length) {
    for (int i = start; i < end; i++) printf("%c", s[i]);
    puts("");
    count++;
    int news = end, newe = end + 1;
    while (1) {
      if (end - start != newe - news) {
        start = news, end = newe;
        break;
      } else {
        int flag = 0;
        for (int i = 0; i < (end - start); i++)
          if (s[start + i] != s[news + i]) {
            flag = 1;
            break;
          }
        if (flag) {
          start = news, end = newe;
          break;
        } else {
          newe++;
        }
      }
    }
  }
  printf("%d\n", count);
  return 0;
}
