#include <bits/stdc++.h>
using namespace std;
const char E = '\n';
int main() {
  set<string> a;
  string s;
  cin >> s;
  a.insert(s);
  int n = s.length();
  for (int i = 1; i <= n + 1; i++) {
    char z = s[n - 1];
    for (int j = n; j >= 1; j--) {
      s[j] = s[j - 1];
    }
    s[0] = z;
    a.insert(s);
  }
  cout << a.size() << E;
  return 0;
}
