#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  string s;
  cin >> s;
  vector<string> v;
  while (1) {
    if (find(v.begin(), v.end(), s) == v.end())
      v.push_back(s);
    else
      break;
    s += s[0];
    s.erase(s.begin());
  }
  cout << v.size() << endl;
  return 0;
}
