import sys
l = input()
output = [l]
n = len(l)
for i in range(n):
    output.append(output[i][1:] + output[i][:1])
num = len(set(output))
sys.stdout.write(str(num) + '\n')

fc47d4720ea0b3398219c6f659b99cb3a6b97f36
<mask token>

<mask token>
for i in range(n):
    output.append(output[i][1:] + output[i][:1])
<mask token>
sys.stdout.write(str(num) + '\n')

<mask token>
l = input()
output = [l]
n = len(l)
for i in range(n):
    output.append(output[i][1:] + output[i][:1])
num = len(set(output))
sys.stdout.write(str(num) + '\n')

import sys
l = input()
output = [l]
n = len(l)
for i in range(n):
    output.append(output[i][1:] + output[i][:1])
num = len(set(output))
sys.stdout.write(str(num) + '\n')
