#include <bits/stdc++.h>
using namespace std;
void makra() {
  set<string> s;
  string t;
  cin >> t;
  for (int i = 0; i < (int)t.length(); ++i) {
    string k;
    for (int j = 0; j < (int)t.length(); ++j) k += t[(i + j) % (int)t.length()];
    s.insert(k);
  }
  cout << s.size() << "\n";
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int tc = 1;
  while (tc--) {
    makra();
  }
  cerr << "Time elapsed:" << clock() / (long double)CLOCKS_PER_SEC << "sec"
       << endl;
  return 0;
}
