#include <bits/stdc++.h>
using namespace std;
int main() {
  int j = 0, cont = 1, p, check;
  string s, s1, c, ck[51];
  getline(cin, s);
  s1 = s;
  ck[0] = s1;
  for (int k = 0; k < s.size(); k++) {
    check = 1;
    int i = s.size() - 1;
    c = s1[i];
    s1.erase(i, 1);
    s1.insert(j, c);
    for (p = 0; p <= k + 1; p++) {
      if (ck[p] == s1) {
        check = 0;
        break;
      }
    }
    if (check) {
      cont++;
      ck[k + 1] = s1;
    }
  }
  cout << cont << endl;
  return 0;
}
