{"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\u003e定義一個電話號碼為長度恰好是 11 個數字且開頭為 \u003cspan class\u003d\"tex-font-style-tt\"\u003e8\u003c/span\u003e 的字串。\u003c/p\u003e\n\u003cp\u003eVasya 和 Petya 在玩一個遊戲。起始他們有一個長度為 $$$n$$$($$$n$$$ 為奇數)的字串 $$$s$$$。Vasya 先手,兩人輪流操作,在每一次操作,玩家必須從字串中移除一個字元。例如現在有個字串 \u003cspan class\u003d\"tex-font-style-tt\"\u003e1121\u003c/span\u003e 經過一個玩家操作後它可能變成 \u003cspan class\u003d\"tex-font-style-tt\"\u003e112\u003c/span\u003e 或 \u003cspan class\u003d\"tex-font-style-tt\"\u003e111\u003c/span\u003e 或 \u003cspan class\u003d\"tex-font-style-tt\"\u003e121\u003c/span\u003e。當字串 $$$s$$$ 的長度變成 \u003cspan class\u003d\"tex-font-style-tt\"\u003e11\u003c/span\u003e 時遊戲即結束,若最後這個字串是組電話號碼,則 Vasya 獲勝,否則為 Petya 獲勝。\u003c/p\u003e\n\u003cp\u003e請你判斷 Vasya 是否有一個必勝的策略,也就是說,無論 Petya 怎麼選,Vasya 是否最終皆能獲勝。\u003c/p\u003e"}},{"title":"輸入說明","value":{"format":"HTML","content":"\u003cp\u003e第一行有一個整數 $$$n$$$ ($$$13 \\le n \u0026lt; 10^5$$$, $$$n$$$ 為奇數),代表字串 $$$s$$$ 的長度。\u003c/p\u003e\n\u003cp\u003e第二行為起始的字串 $$$s$$$ ($$$|s| \u003d n$$$),字串僅由數字 0-9 組成。\u003c/p\u003e"}},{"title":"輸出說明","value":{"format":"HTML","content":"\u003cp\u003e對於輸入的字串,若 Vasya 存在一個必勝的策略,輸出 \u003cspan class\u003d\"tex-font-style-tt\"\u003eYES\u003c/span\u003e,否則輸出 \u003cspan class\u003d\"tex-font-style-tt\"\u003eNO\u003c/span\u003e。\u003c/p\u003e"}},{"title":"範例一","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e13\n8380011223344\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eYES\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"範例二","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e15\n807345619350641\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eNO\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}