#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, ans = 1, j;
  string s;
  string a[64];
  cin >> s;
  a[0] = s;
  for (i = 1; i < s.size(); i++) {
    s = s[s.size() - 1] + s;
    s.erase(s.size() - 1);
    for (j = 0; j < ans; j++)
      if (s == a[j]) break;
    if (j == ans) {
      a[ans] = s;
      ans++;
    }
  }
  cout << ans << endl;
}
