#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  set<string> st;
  st.insert(str);
  int len = str.length();
  for (int i = 0; i <= len; ++i) {
    char pre = str[0];
    for (int i = 1; i <= len - 1; ++i) {
      char ch = str[i];
      str[i] = pre;
      pre = ch;
    }
    str[0] = pre;
    st.insert(str);
  }
  cout << st.size();
  return 0;
}
