A border of a string is a prefix that is also a suffix of the string but not the whole string. For example, the borders of abcababcab
are ab
and abcab
.
Your task is to find all border lengths of a given string.
The only input line has a string of length nnn consisting of characters a–z.
Print all border lengths of the string in increasing order.