#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  cin >> a;
  int len, res;
  b = a;
  len = a.length();
  a += a;
  a.erase(0, 1);
  res = a.find(b);
  cout << res + 1;
  return 0;
}
