#include <bits/stdc++.h>
using namespace std;
string app(string str1, string str2, int n) {
  str1.append(str2.begin(), str2.begin() + n);
  return str1;
}
int main() {
  string str;
  cin >> str;
  int K = 0, L = str.length();
  string current = "";
  string checkarray = "";
  int len = 1;
  for (int i = 0; i < L; i++) {
    int len = 1;
    if (i == L - 1) {
      ++K;
      break;
    }
    current.push_back(str[i]);
    checkarray.push_back(str[i + 1]);
    while (current == checkarray) {
      current.push_back(str[i + 1]);
      ++i;
      ++len;
      if (len > str.length() / 2) break;
      string temp1 = str;
      temp1.erase(0, i + 1);
      checkarray.erase();
      checkarray = app(checkarray, temp1, len);
    }
    ++K;
    checkarray.erase();
    current.erase();
  }
  cout << K;
  return 0;
}
