#include <bits/stdc++.h>
int main() {
  int k = 0;
  std::string t;
  std::cin >> t;
  int n = t.length();
  std::string s[50];
  for (int i = 0; i < n; ++i) {
    s[i] = t.substr(i, n - i);
    s[i] += t.substr(0, i);
    for (int j = 0; j < i; ++j) {
      if (s[i] == s[j]) {
        --k;
        break;
      }
    }
    ++k;
  }
  std::cout << k;
  return 0;
}
