#include <bits/stdc++.h>
using namespace std;
map<string, int> a;
int main() {
  string s;
  cin >> s;
  string ss = "";
  for (int i = 0; i < s.size(); i++) {
    a[s]++;
    ss += s[s.size() - 1];
    for (int j = 0; j < s.size() - 1; j++) {
      ss += s[j];
    }
    s = ss;
    ss = "";
  }
  cout << a.size() << endl;
}
