#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  int K = 0;
  for (int i = 0; i < str.length(); i++) {
    if (i == str.length() - 1) {
      ++K;
      break;
    }
    char temp[1];
    str.copy(temp, 1, i);
    string current(temp);
    int len = 1;
    char checkarray[len];
    str.copy(checkarray, len, i + 1);
    while (current == checkarray) {
      current.push_back(str[i + 1]);
      i++;
      ++len;
      if (len > str.length() / 2) break;
      str.copy(checkarray, len, i + 1);
    }
    ++K;
  }
  cout << K;
  return 0;
}
