#include <bits/stdc++.h>
using namespace std;
string s[51];
int main() {
  int tot = 1;
  cin >> s[1];
  int len = s[1].size();
  for (int i = 2; i <= s[1].size(); i += 1) {
    s[i] = s[i - 1];
    string ss;
    ss.resize(1);
    ss[0] = s[i][len - 1];
    s[i].insert(0, ss);
    s[i].erase(len, 1);
    int add = 1;
    for (int j = 1; j < i; j += 1)
      if (s[i] == s[j]) add = 0;
    tot += add;
  }
  printf("%d", tot);
  return 0;
}
