#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string str, str1, str2, str3;
  int r = 0, i, l, n = 0, u, p, o, m = 0, k;
  cin >> str;
  str1 = str + str;
  cout << str1.find(str, 1);
  return 0;
}
