#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[102];
  scanf("%s", s);
  int n = strlen(s);
  sscanf(s, "%s", &s[n]);
  s[n << 1] = '\0';
  string ss;
  map<string, bool> m;
  int distinct = 0;
  for (int i = 0; i < n; ++i) {
    char t = s[n + i];
    s[n + i] = '\0';
    ss = string(&s[i]);
    if (!m[ss]) {
      m[ss] = true;
      ++distinct;
    }
    s[n + i] = t;
  }
  printf("%d\n", distinct);
  return 0;
}
