#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  set<char> ss;
  map<string, bool> mp;
  long long l = 0;
  for (long long i = 0; i < s.size(); i++) {
    if (!mp[s]) l++;
    mp[s] = true;
    rotate(s.begin(), s.end() - 1, s.end());
  }
  cout << l << endl;
}
