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