{"problem":{"name":"Quizzes","description":{"content":"Takahashi will answer $N$ quiz questions.   Initially, he has $X$ points. Each time he answers a question, he gains $1$ point if his answer is correct and loses $1$ point if it is incorrect.   However","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc184_b"},"statements":[{"statement_type":"Markdown","content":"Takahashi will answer $N$ quiz questions.  \nInitially, he has $X$ points. Each time he answers a question, he gains $1$ point if his answer is correct and loses $1$ point if it is incorrect.  \nHowever, there is an exception: when he has $0$ points, he loses nothing for answering a question incorrectly.\nYou will be given a string $S$ representing whether Takahashi's answers are correct.  \nIf the $i$\\-th character of $S$ from the left is `o`, it means his answer for the $i$\\-th question is correct; if that character is `x`, it means his answer for the $i$\\-th question is incorrect.  \nHow many points will he have in the end?\n\n## Constraints\n\n*   $1 \\le N \\le 2 \\times 10^5$\n*   $0 \\le X \\le 2 \\times 10^5$\n*   $S$ is a string of length $N$ consisting of `o` and `x`.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$N$ $X$\n$S$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc184_b","tags":[],"sample_group":[["3 0\nxox","0\n\nInitially, he has $0$ points.  \nHe answers the first question incorrectly but loses nothing because he has no point.  \nThen, he answers the second question correctly, gains $1$ point, and now has $1$ point.  \nFinally, he answers the third question incorrectly, loses $1$ point, and now has $0$ points.  \nThus, he has $0$ points in the end. We should print $0$."],["20 199999\noooooooooxoooooooooo","200017"],["20 10\nxxxxxxxxxxxxxxxxxxxx","0"]],"created_at":"2026-03-03 11:01:14"}}