#include <bits/stdc++.h>
using namespace std;
long long n, m, x, y, cnt;
string s, cal, kcal;
bool ok = false, mtest = false;
char ch;
deque<char> A, B;
void solve() {
  cin >> s;
  for (int i = 0; i < (int)s.size(); ++i) {
    A.push_back(s[i]);
    B.push_back(s[i]);
  }
  while (1) {
    ch = A[A.size() - 1];
    A.push_front(ch);
    A.pop_back();
    if (A == B) {
      cout << cnt + 1;
      break;
    }
    cnt++;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  solve();
}
