{"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":"MD","content":"You are given a string **T** which consists of letters from the English alphabet and your task is to maximize the number of times the string \"VK\" appears as a *substring*. You are allowed to change at most one letter - either from \u0027V\u0027 to \u0027K\u0027 or from \u0027K\u0027 to \u0027V\u0027. A substring means the letters have to be in the string in the exact order as required. For example, in the string \"ABVCK\", there is no such sub-string, while in \"ABVK\", there is one sub-string."}},{"title":"Input","value":{"format":"MD","content":"The first line of input is the string **T** consisting of uppercase English letters. **T** will only contain \"V\" and \"K\" and the length of the string will be at least **1** and at most **100**."}},{"title":"Output","value":{"format":"MD","content":"The output is a single integer which is the maximum number of times the substring can appear."}},{"title":"Sample Input","value":{"format":"MD","content":"`VVV`"}},{"title":"Sample Output","value":{"format":"MD","content":"`1`"}}]}