#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 30;
char s[60];
int main() {
  cin >> s;
  set<string> A;
  int n = strlen(s);
  for (int i = 0; i < n; ++i) {
    string cur;
    for (int j = 0; j < n; ++j) {
      cur += s[(i + j) % n];
    }
    A.insert(cur);
  }
  cout << A.size() << endl;
  return 0;
}
