Besides data structures and number theory, ZYB also loves strings.
Consider a string

of length

, denote

as the

-th character in the string (1-based).
Define a string function
(1%20%5Cleq%20x%20%5Cleq%20y%20%5Cleq%20n))
such that
%7C%3Dy-x%2B1%7D)
and the

-th character of
%7D)
is

.
For example, if
, then
. Let
. ZYB wants to know how many different strings in set
(i.e. the value of 
)
.
输入描述:
The input only contains one test case.
There is a string
)
in the first line, indicating the string we focus.
It is guaranteed that the string is composed of only first

lowercase letters (i.e.

).
输出描述:
The output only contains one integer indicating the answer.