#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[100];
  char b[100];
  int i, len, num, temp, point;
  while (scanf("%s", a) != EOF) {
    num = 0;
    len = strlen(a);
    strcpy(b, a);
    point = 0;
    do {
      point++;
      temp = b[0];
      for (i = 0; i < len; i++) b[i] = b[i + 1];
      b[len - 1] = temp;
      if (strcmp(a, b) == 0) break;
      num++;
    } while (point <= len);
    num++;
    printf("%d\n", num);
  }
  return 0;
}
