{"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":"\u003cp\u003eQAQ是人們常用的表情符號之一,用來表示難過、流淚之意。\u003c/p\u003e\n\u003cp\u003e舊已是個擅長隱藏情緒的人,在打字時也不例外。舊已常常會在輸入的字串中藏入數個QAQ以偷偷表達他的難過之意。\n\u003cp\u003e給你一個舊已輸入的字串,請判斷字串中有幾個「QAQ」藏在裡面。\u003c/p\u003e"}},{"title":"INPUT","value":{"format":"HTML","content":"\u003cp\u003e輸入僅有一行,包含一個由大寫英文字母組成的字串\u003cb\u003es\u003c/b\u003e,保證其長度不超過100。\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e請輸出一整數,表示舊已在字串中藏的QAQ數量。\u003c/p\u003e"}},{"title":"SAMPLE INPUT 1","value":{"format":"HTML","content":"\u003cfont face \u003d \"Courier New\"\u003e\u003cpre\u003eQAQAQYSYIOIWIN\n\u003c/pre\u003e\u003c/font\u003e"}},{"title":"SAMPLE OUTPUT 1","value":{"format":"HTML","content":"\u003cfont face \u003d \"Courier New\"\u003e\u003cpre\u003e4\n\u003c/pre\u003e\u003c/font\u003e"}},{"title":"SAMPLE INPUT 2","value":{"format":"HTML","content":"\u003cfont face \u003d \"Courier New\"\u003e\u003cpre\u003eQAQQQZZYNOIWIN\n\u003c/pre\u003e\u003c/font\u003e"}},{"title":"SAMPLE OUTPUT 2","value":{"format":"HTML","content":"\u003cfont face \u003d \"Courier New\"\u003e\u003cpre\u003e3\n\u003c/pre\u003e\u003c/font\u003e"}}]}