{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"最近又流行转圈圈了,X_X_X也跟紧了转圈圈的潮流。他是个转圈圈大师,他可以通过将字符串最后一个字符移动到最前面来得到不同的圈圈,他希望知道他的这种神奇方式能得到多少种不同的圈圈,比方说现在X_X_X本身就是一个圈圈,转一次之后变成了XX_X_,再转一次变成_XX_X,再转成X_XX_、_X_XX,最后终于变回X_X_X,总共有5种圈圈。\u003c/p\u003e\n现在X_X_X又有新的圈圈,但他太懒不想转了,请你帮帮他,告诉他这个圈圈有几种变化形态?\n"}},{"title":"Input","value":{"format":"HTML","content":"第一行包含一个字符串S(|S| ≤ 50),字符串由小写字母组成。"}},{"title":"Output","value":{"format":"HTML","content":"输出得到的不同字符串的数量。"}},{"title":"Examples","value":{"format":"HTML","content":"\u003cdiv class\u003d\"sample-test\"\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003eabcd\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e4\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003ebbb\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e1\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003eyzyz\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e2\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}},{"title":"Note","value":{"format":"HTML","content":"\u003cp\u003eFor the first sample, the strings Hongcow can generate are \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eabcd\u003c/span\u003e\", \"\u003cspan class\u003d\"tex-font-style-tt\"\u003edabc\u003c/span\u003e\", \"\u003cspan class\u003d\"tex-font-style-tt\"\u003ecdab\u003c/span\u003e\", and \"\u003cspan class\u003d\"tex-font-style-tt\"\u003ebcda\u003c/span\u003e\".\u003c/p\u003e\n\u003cp\u003eFor the second sample, no matter how many times Hongcow does the cyclic shift, Hongcow can only generate \"\u003cspan class\u003d\"tex-font-style-tt\"\u003ebbb\u003c/span\u003e\".\u003c/p\u003e\n\u003cp\u003eFor the third sample, the two strings Hongcow can generate are \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eyzyz\u003c/span\u003e\" and \"\u003cspan class\u003d\"tex-font-style-tt\"\u003ezyzy\u003c/span\u003e\".\u003c/p\u003e"}}]}