#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  map<string, int> m;
  string str, main_str;
  int a[26], total = 0;
  cin >> str;
  main_str = str;
  m[main_str]++;
  int len = str.length();
  while (1) {
    char last_tmp = str[len - 1];
    char first_tmp = str[0];
    for (int i = 1; i < len; i++) {
      char second_tmp = str[i];
      str[i] = first_tmp;
      first_tmp = second_tmp;
    }
    str[0] = last_tmp;
    if (main_str == str)
      break;
    else
      total++;
  }
  cout << total + 1 << endl;
  return 0;
}
