#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
bool solve() {
  string t;
  cin >> t;
  deque<char> a;
  for (int i = 0; i < (int)t.size(); i++) a.push_back(t[i]);
  map<deque<char>, int> mp;
  for (int i = 0; i < (int)a.size(); i++) {
    char t = a[(int)a.size() - 1];
    a.pop_back();
    a.push_front(t);
    mp[a]++;
  }
  cout << (int)mp.size();
  return 1;
}
int main() {
  solve();
  return 0;
}
