#include <bits/stdc++.h>
using namespace std;
string s;
map<string, bool> used;
unsigned long long n;
unsigned long long cnt = 0;
void read() {
  cin >> s;
  n = s.size();
}
void solve() {
  for (unsigned long long i = 0; i < n; i++) {
    string crr = "";
    for (unsigned long long j = n - i; j < n; j++) crr += s[j];
    for (unsigned long long j = 0; j < n - i; j++) crr += s[j];
    if (!used[crr]) {
      used[crr] = 1;
      cnt++;
    }
  }
  cout << cnt << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  read();
  solve();
  return 0;
}
