#include <bits/stdc++.h>
using namespace std;
map<string, bool> was;
string s;
int ans;
int main() {
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    char last = s[s.size() - 1];
    if (!was[s]) ans++, was[s] = 1;
    s.erase(s.size() - 1, 1);
    s = last + s;
  }
  cout << ans;
}
