#include <bits/stdc++.h>
using namespace std;
char a[51][52];
int n, cont;
bool fr[51];
void formare(int p) {
  a[p][0] = a[p - 1][n - 1];
  for (int i = 0; i < n - 1; ++i) a[p][i + 1] = a[p - 1][i];
}
void verificare() {
  for (int i = 1; i <= n; ++i)
    for (int j = i + 1; j <= n; ++j)
      if (strcmp(a[i], a[j]) == 0) fr[j] = 1;
}
int main() {
  cin >> a[1];
  n = strlen(a[1]);
  for (int i = 2; i <= n; ++i) formare(i);
  verificare();
  for (int i = 1; i <= n; ++i)
    if (fr[i] == 0) cont++;
  cout << cont;
  return 0;
}
