#include <bits/stdc++.h>
using namespace std;
int main() {
  string in;
  cin >> in;
  vector<string> vec;
  for (int i = 0; i < in.length(); i++) {
    string tmp = in.substr(i, in.length() - i) + in.substr(0, i);
    vec.push_back(tmp);
  }
  sort(vec.begin(), vec.end());
  vec.erase(unique(vec.begin(), vec.end()), vec.end());
  printf("%d", vec.size());
  return 0;
}
