{"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":"MD","content":"rew很皮 ,喜欢偷偷删掉7zz的部分代码,但dzzq有强迫症,只会删掉相同的部分。\n\n7zz的代码都是用可见ASCII字符表示。z77的代码和rew删掉的部分不会超过1000个字符长。如果遇见#字符,rew就结束删代码的工作。\n\n请问rew最多能删掉7zz多少处代码。"}},{"title":"Input","value":{"format":"MD","content":"输入包含多组数据,遇到#字符则表明输入结束。\n每组数据只有一行,包含7zz的代码和rew要删掉的部分,用空格隔开。"}},{"title":"Output","value":{"format":"MD","content":"输出rew最多能删掉多少处代码,如果一处都删不掉,rew只能灰溜溜的输出0,每个结果占一行。"}},{"title":"Sample Input","value":{"format":"MD","content":"7zz7zz7zz 7zz\nababababa aba\nabc abcabc\nwannafly? think\n#"}},{"title":"Sample Output","value":{"format":"MD","content":"3\n2\n0\n0"}}]}