You are given a string

which consists of

lowercase latin letters at most. We define
)
as the maximal number of times that some string with length

appears in

. For example for string

,
)
will be

because there is a string

that occurs twice. Your task is to output
)
for every

so that

.