#include <bits/stdc++.h>
using namespace std;
int main() {
  string s[100];
  int i, j, count = 0, num = 0;
  cin >> s[0];
  for (i = 0; i < s[0].length(); i++) {
    s[i + 1] = s[i];
    num = 0;
    rotate(s[i + 1].rbegin(), s[i + 1].rbegin() + 1, s[i + 1].rend());
  }
  for (i = 0; i < s[0].length(); i++) {
    num = 0;
    for (j = i + 1; j < s[0].length(); j++) {
      if (i != j && s[i].compare(s[j]) == 0) {
        num = 1;
        break;
      }
    }
    if (num != 1) count++;
  }
  cout << count;
  return 0;
}
