{"trustable":false,"prependHtml":"\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 async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cpre\u003e大魔法师Harry擅长对物体进行变换,变换的规则如下:\n若一个咒语以字母 $α$ 开头 $β$ 结尾,则Harry可以将手里的字母 $α$ 变成 $β$ ( $α,β$ 指代26个小写英文字母)。\nHarry掏出了他的大魔法书,上面记录了他所拥有的全部咒语,现在他手里有一个字母 $b$ ,请问他能否将字母 $b$ 变成字母 $m$ 呢?\u003c/pre\u003e\n\n"}},{"title":"输入格式","value":{"format":"HTML","content":"\u003cpre\u003e测试数据有多组。每组有多行(\u003cb\u003e不确定有多少行,注意存储方式,防止栈溢出\u003c/b\u003e),每行一个单词,仅包括小写字母,是Harry所会的所有咒语.数字 $0$ 表示一组咒语全部输入结束.\u003c/pre\u003e"}},{"title":"输出格式","value":{"format":"HTML","content":"\u003cpre\u003e如果Harry可以将皮球(ball)变成仓鼠(mouse),就输出\"Yes.\",否则就输出\"No.\"(不要忽略了句号) \u003c/pre\u003e\n\u003cb\u003e每行输出末尾仅有一个换行。\u003c/b\u003e\n"}},{"title":"输入样例","value":{"format":"HTML","content":"\u003cpre\u003eso\nsoon\nriver\ngoes\nthem\ngot\nmoon\nbegin\nbig\n0\u003c/pre\u003e"}},{"title":"输出样例","value":{"format":"HTML","content":"\u003cpre\u003eYes.\u003c/pre\u003e"}},{"title":"样例提示","value":{"format":"HTML","content":"\u003cpre\u003eHarry可以这样念咒语:\"big-got-them\"\u003c/pre\u003e"}}]}