#include <bits/stdc++.h>
using namespace std;
char s[55];
set<string> v;
int main() {
  scanf(" %s", s);
  int len = strlen(s), aux;
  int st = 0;
  aux = len;
  while (aux--) {
    int cont = 0;
    char nx[55];
    for (int i = st; cont < len; i++, cont++) {
      if (i == len) i = 0;
      nx[cont] = s[i];
    }
    nx[cont] = '\0';
    v.insert(nx);
    st--;
    if (st == -1) st = len - 1;
  }
  printf("%d\n", v.size());
}
