#include <bits/stdc++.h>
using namespace std;
int main() {
  string word;
  while (cin >> word) {
    map<string, bool> check;
    int cnt = 0;
    for (int a = 0; a < word.length(); a++) {
      if (!check[word]) cnt++;
      check[word] = true;
      string ch = word.substr(word.length() - 1, 1);
      word.pop_back();
      word = ch + word;
    }
    cout << cnt << endl;
  }
  return 0;
}
