#include <bits/stdc++.h>
using namespace std;
string s;
int ans;
char c;
int main() {
  cin >> s;
  map<string, int> mp;
  for (int i = 0; i < s.size(); i++) {
    c = s[s.size() - 1];
    for (int j = s.size() - 1; j > 0; j--) s[j] = s[j - 1];
    s[0] = c;
    mp[s]++;
    if (mp[s] == 1) ans++;
  }
  printf("%d\n", ans);
  return 0;
}
