#include <bits/stdc++.h>
using namespace std;
int main() {
  set<string> S;
  string s;
  cin >> s;
  int len = s.length();
  for (int i = 0; i < len; ++i) {
    S.insert(s);
    char c = s[0];
    s.erase(0, 1);
    s += c;
  }
  cout << S.size() << "\n";
}
