#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, spr;
  vector<string> valer;
  cin >> s;
  char h;
  int k = (int)s.size();
  valer.push_back(s);
  for (int i = 1; i < k; i++) {
    h = s[k - 1];
    for (int j = k - 1; j > 0; j--) {
      s[j] = s[j - 1];
    }
    s[0] = h;
    spr = s;
    bool t = true;
    for (int r = 0; r < (int)valer.size(); r++) {
      if (spr == valer[r]) t = false;
    }
    if (t == true) {
      valer.push_back(spr);
    }
  }
  cout << (int)valer.size() << endl;
  return 0;
}
