#include <bits/stdc++.h>
using namespace std;
int main() {
  string n, nn;
  int counter = 1;
  cin >> n;
  nn = n;
  for (int i = n.length() - 1; i > 0; i--) {
    swap(nn[i], nn[i - 1]);
  }
  while (n != nn) {
    for (int i = n.length() - 1; i > 0; i--) {
      swap(nn[i], nn[i - 1]);
    }
    counter += 1;
  }
  cout << counter;
}
