#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int maxN = 100005;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  string s;
  cin >> s;
  set<string> ans;
  for (int i = 0; i < 100; i++) {
    ans.insert(s);
    char c = s[0];
    s = s.substr(1, s.size());
    s += c;
  }
  cout << ans.size() << endl;
  return 0;
}
