#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  string s, a[54], sub, ps;
  int br = 0;
  cin >> s;
  unsigned int len = s.size();
  for (unsigned int i = 0; i < len; i++) {
    a[i] = s;
    sub = s.substr(0, len - 1);
    ps = s.substr(len - 1, len);
    s = ps + sub;
  }
  unsigned int res = len;
  for (int i = 1; i < len; i++) {
    for (int j = 0; j < i; j++) {
      if (a[i] == a[j]) {
        if (res > 1) {
          res--;
          break;
        }
      }
    }
  }
  cout << res;
}
