#include <bits/stdc++.h>
using namespace std;
string s[100];
int sum, q;
int main() {
  cin >> s[0];
  int n = s[0].size();
  for (int i = 0; i < n; i++) {
    char x = s[i][n - 1];
    s[i].erase(n - 1, n - 1);
    s[i + 1] = x + s[i];
  }
  for (int i = 0; i < n; i++) {
    int k = 0;
    for (int j = i + 1; j < n; j++) {
      if (s[i] == s[j]) k++;
    }
    if (k == 0) sum++;
  }
  cout << sum;
  return 0;
}
