#include <bits/stdc++.h>
using namespace std;
map<string, int> mp;
string s;
int main() {
  cin >> s;
  mp.clear();
  int len = s.size();
  mp[s] = 1;
  for (int i = 2; i <= len; i++) {
    char c = s[len - 1];
    for (int j = len - 1; j > 0; j--) s[j] = s[j - 1];
    s[0] = c;
    mp[s] = 1;
  }
  printf("%d\n", mp.size());
  return 0;
}
