#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
long long lcm(long long a, long long b) { return a * (b / gcd(a, b)); }
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  map<string, int> uni;
  string s;
  cin >> s;
  int n = s.size();
  int ans = 0;
  for (int i = 0; i < n; ++i) {
    string tmp;
    tmp.push_back(s.back());
    s = tmp + s.substr(0, s.size() - 1);
    ans += !uni.count(s);
    uni[s] = 1;
  }
  cout << ans << endl;
  return 0;
}
