AdvancedRating 1500
Smallest Period
Print the length of the shortest string t such that s is t repeated some whole number of times.
Input
One string (length ≤ 10⁵).
Output
A length.
Sample 1
Input
ababab
Output
2
Sample 2
Input
abcd
Output
4
Output appears here