#include <bits/stdc++.h>
using namespace std;
bool alp[26];
int main() {
  string s;
  cin >> s;
  int cnt = 1;
  string t = s;
  t.push_back(t[0]);
  t.erase(t.begin());
  while (t != s) {
    t.push_back(t[0]);
    t.erase(t.begin());
    cnt++;
  }
  cout << cnt << endl;
  return 0;
}
