#include <bits/stdc++.h>
using namespace std;
string cycle(string s) {
  char c = s[0];
  for (int i = 1; i < s.size(); i++) s[i - 1] = s[i];
  s[s.size() - 1] = c;
  return s;
}
int main() {
  string s;
  int cnt = 0;
  map<string, int> mkd;
  cin >> s;
  for (int i = 0; i < 60; i++) {
    if (mkd[s] == 0) cnt++;
    mkd[s] = 1;
    s = cycle(s);
  }
  cout << cnt << endl;
}
