#include <bits/stdc++.h>
using namespace std;
int main() {
  int count = 0;
  string s, c;
  cin >> s;
  c = s;
  do {
    rotate(s.begin(), s.begin() + 1, s.end());
    count++;
  } while (c != s);
  cout << count << "\n";
  return 0;
}
