#include <bits/stdc++.h>
const int INF = 0x3f3f3f3f;
const double EPS = 1e-9;
using namespace std;
int main() {
  set<string> c;
  string line;
  getline(cin, line);
  c.insert(line);
  int sz = line.size();
  for (int i = (int)(0); i < (int)(sz); ++i) {
    line.push_back(line[0]);
    line.erase(line.begin());
    c.insert(line);
  }
  cout << c.size() << endl;
  return 0;
}
