#include <bits/stdc++.h>
using namespace std;
void shift(string &s) {
  char c = s[0];
  int N = s.size() - 1;
  for (int i = 0; i < N; ++i) {
    s[i] = s[i + 1];
  }
  s[N] = c;
}
int main() {
  set<string> s;
  string in;
  cin >> in;
  s.emplace(in);
  for (int i = 0; i < (int)in.size(); ++i) {
    shift(in);
    s.emplace(in);
  }
  cout << s.size();
  return 0;
}
