#include <bits/stdc++.h>
using namespace std;
int main() {
  set<string> s;
  string s1;
  int c = 0, i;
  getline(cin, s1);
  int lan = s1.size();
  for (i = 0; i < s1.size(); i++) {
    s1 = s1[lan - 1] + s1.substr(0, lan - 1);
    s.insert(s1);
  }
  cout << s.size() << endl;
}
