Basis of the row
Easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
The string S was repeated several times consecutively, and then a substring was extracted from this repeated sequence and provided to you.
Your task is to find the minimum possible length of the original string S.
Input
The input consists of a single line containing a string made up solely of Latin letters. The length of this string does not exceed 50000 characters.
Output
Output the minimum possible length of the original string S.
Examples
Input #1
Answer #1
Submissions 277
Acceptance rate 23%