#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int sz = s.size();
  set<string> dist;
  while (sz--) {
    string x = s;
    char temp = s[s.size() - 1];
    for (int i = s.size() - 1; i > 0; i--) {
      s[i] = s[i - 1];
    }
    s[0] = temp;
    dist.insert(x);
  }
  cout << dist.size() << endl;
  return 0;
}
