Period of a string#2463

Period of a string

1 second
64 megabytes
Very easy

Given a string , find the shortest string such that can be represented as a concatenation of one or more copies of .

Input

The only input is the string (1 \leq |s| \leq 5 \cdot 10^6), consisting of Latin letters only.

Output

Print the length of the string .

Examples

Example 1

Loading
Loading