#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  while (cin >> s) {
    int cnt = 0;
    int len = s.length();
    string t;
    string s1 = s;
    t = "";
    while (t != s1) {
      if (t != "") s = t;
      t = "";
      char c = s[len - 1];
      t += c;
      for (int i = 0; i < len - 1; i++) t += s[i];
      cnt++;
    }
    cout << cnt << endl;
  }
}
