#include <bits/stdc++.h>
using namespace std;
int main(int argc, char* argv[]) {
  string s;
  cin >> s;
  vector<string> a;
  a.push_back(s);
  for (int i = 0; i < s.size(); i++) {
    char ss = s[s.size() - 1];
    s.erase(s.end() - 1);
    s.insert(s.begin(), ss);
    bool find = false;
    for (int j = 0; j < a.size(); j++)
      if (a[j] == s) find++;
    if (!find) a.push_back(s);
  }
  cout << a.size() << endl;
  return 0;
}
