On a regular day, Emre and Alp are walking around the Golet (one of the greatest beauties of ITU) as Emre talks about his super power to Alp: his word memory. He knows more words than average. But how he can do that? With a simple technique, he can memorize words much easier than usual: If the reverse of the first half (including median at words with odd length) of any word can be found as a suffix of any word in his memory, then he can remember a whole set of words much more easly.
Emre defines the number of words that hold this property as Verbum Profundum. After this conversation Alp gets curious about his own Verbum Profundum and he tries calculating it as he continues his morning walk. Can you help him find his Verbum Profundum?
First line consists of one integer
Next
Print one integer denoting the Verbum Profundum of Alp.
3
kmnbbb
bbcnmk
bbbxx
2
kmnbbb and bbbxx satisfy the rule.