{"trustable":true,"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\u003eA telephone number is a sequence of \u003cspan class\u003d\"tex-font-style-bf\"\u003eexactly\u003c/span\u003e $$$11$$$ digits such that its first digit is \u003cspan class\u003d\"tex-font-style-tt\"\u003e8\u003c/span\u003e.\u003c/p\u003e\u003cp\u003eVasya and Petya are playing a game. Initially they have a string $$$s$$$ of length $$$n$$$ ($$$n$$$ is odd) consisting of digits. Vasya makes the first move, then players alternate turns. In one move the player \u003cspan class\u003d\"tex-font-style-bf\"\u003emust\u003c/span\u003e choose a character and erase it from the current string. For example, if the current string \u003cspan class\u003d\"tex-font-style-tt\"\u003e1121\u003c/span\u003e, after the player\u0027s move it may be \u003cspan class\u003d\"tex-font-style-tt\"\u003e112\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-tt\"\u003e111\u003c/span\u003e or \u003cspan class\u003d\"tex-font-style-tt\"\u003e121\u003c/span\u003e. The game ends when the length of string $$$s$$$ becomes \u003cspan class\u003d\"tex-font-style-tt\"\u003e11\u003c/span\u003e. If the resulting string is a telephone number, Vasya wins, otherwise Petya wins.\u003c/p\u003e\u003cp\u003eYou have to determine if Vasya has a winning strategy (that is, if Vasya can win the game no matter which characters Petya chooses during his moves).\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eThe first line contains one integer $$$n$$$ ($$$13 \\le n \u0026lt; 10^5$$$, $$$n$$$ is odd) — the length of string $$$s$$$.\u003c/p\u003e\u003cp\u003eThe second line contains the string $$$s$$$ ($$$|s| \u003d n$$$) consisting only of decimal digits.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003eIf Vasya has a strategy that guarantees him victory, print \u003cspan class\u003d\"tex-font-style-tt\"\u003eYES\u003c/span\u003e.\u003c/p\u003e\u003cp\u003eOtherwise print \u003cspan class\u003d\"tex-font-style-tt\"\u003eNO\u003c/span\u003e.\u003c/p\u003e"}},{"title":"Examples","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"}},{"title":"Note","value":{"format":"HTML","content":"\u003cp\u003eIn the first example Vasya needs to erase the second character. Then Petya cannot erase a character from the remaining string \u003cspan class\u003d\"tex-font-style-tt\"\u003e880011223344\u003c/span\u003e so that it does not become a telephone number.\u003c/p\u003e\u003cp\u003eIn the second example after Vasya\u0027s turn Petya can erase one character character \u003cspan class\u003d\"tex-font-style-tt\"\u003e8\u003c/span\u003e. The resulting string can\u0027t be a telephone number, because there is no digit \u003cspan class\u003d\"tex-font-style-tt\"\u003e8\u003c/span\u003e at all.\u003c/p\u003e"}}]}