#include <bits/stdc++.h>
using namespace std;
long long m, cnt, mx, n, x, h, sum, y, ans, z, res, q, l, o, n1, g, mn, c, i,
    mxx;
pair<int, int> p[1001];
string s, s1, s2;
vector<string> v, v1, v2;
set<string> st;
set<int> it;
deque<int> d, d1, d2;
char a, b;
map<string, int> mp;
int main() {
  cin >> s;
  v.push_back(s);
  m = s.size();
  s2 = s;
  cnt = 1;
  for (int i = 0; i < m; i++) {
    s1 += s[m - cnt];
    for (int j = 0; j < m - 1; j++) {
      s1 += s[j];
    }
    v.push_back(s1);
    s = s1;
    s1.clear();
    cnt = 1;
  }
  for (int i = 0; i < v.size(); i++) st.insert(v[i]);
  cout << st.size();
}
