#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using P = pair<int, int>;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  int ans = 0;
  for (int i = 0; i < (n); ++i) {
    int k = 1;
    while (true) {
      if (i + k + k >= n) {
        ans++;
        i = i + k - 1;
        break;
      }
      if (s.substr(i, k) != s.substr(i + k, k)) {
        ans++;
        i = i + k - 1;
        break;
      }
      k++;
    }
  }
  cout << ans << endl;
}
