#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, s1;
  cin >> s1;
  s = s1;
  int count = 0, a;
  a = s1.length();
  for (int i = 0; i < a; i++) {
    rotate(s.begin(), s.begin() + 1, s.end());
    if (s != s1) count++;
    if (s == s1) {
      cout << count + 1;
      return 0;
    }
  }
}
