CF745A Hongcow Learns the Cyclic Shift

题目描述

Hongcow正在学习拼写单词!这天,他(他?)的老师给了他一个需要拼写的单词。作为一个好学生,他很快就学会了如何拼写。 Hongcow决定搞个大新闻。他从刚学会拼写的单词开始,每次把最后一个字符移到单词开头。他称此为一次变换。他可以进行多次变换,例如:单词"abracadabra"可以变成"aabracadabr"、"raabracadab"等等 现在,他想知道通过变换能变成几个不同的单词,包括初始单词

输入格式

一行一个字符串$s(1\leq|s|\leq 50)$,表示初始单词,只由$a-z$组成

输出格式

一行表示不同单词个数 感谢 @Fheiwn 提供的翻译。

说明/提示

For the first sample, the strings Hongcow can generate are "abcd", "dabc", "cdab", and "bcda". For the second sample, no matter how many times Hongcow does the cyclic shift, Hongcow can only generate "bbb". For the third sample, the two strings Hongcow can generate are "yzyz" and "zyzy".