#include <bits/stdc++.h>
using namespace std;
string doTheShift(string s) {
  s.insert(0, string(1, s[s.length() - 1]));
  s.pop_back();
  return s;
}
int main() {
  string s;
  cin >> s;
  string g = doTheShift(s);
  int count = 1;
  while (g != s) {
    ++count;
    g = doTheShift(g);
  }
  cout << count;
  return EXIT_SUCCESS;
}
