#include <bits/stdc++.h>
using namespace std;
const int NMAX = 55;
char str[NMAX];
int ans;
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> str;
  int lg = strlen(str);
  char S[NMAX], T[NMAX];
  strcpy(T, str);
  S[0] = T[lg - 1];
  S[1] = 0;
  strncat(S, T, lg - 1);
  while (strcmp(S, str)) {
    ++ans;
    strcpy(T, S);
    S[0] = T[lg - 1];
    S[1] = 0;
    strncat(S, T, lg - 1);
  }
  cout << ans + 1 << "\n";
  return 0;
}
