#include <bits/stdc++.h>
using namespace std;
int main() {
  char ch[200];
  gets(ch);
  char ch1[200];
  strcpy(ch1, ch);
  int l = strlen(ch);
  int count = 0, count1 = 0, j, b = 1;
  char a[51][200];
  while (count != l) {
    count++;
    char c = ch[l - 1];
    for (j = l - 2; j >= 0; j--) {
      ch[j + 1] = ch[j];
    }
    ch[0] = c;
    int flag = 0;
    for (j = 1; j <= b - 1; j++) {
      if (strcmp(a[j], ch) == 0) {
        flag = 1;
        break;
      }
    }
    if (flag == 0) {
      strcpy(a[b++], ch);
    }
  }
  printf("%d", b - 1);
}
