{"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\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027$$$$$$\u0027, right: \u0027$$$$$$\u0027, display: true},\n {left: \u0027$$$\u0027, right: \u0027$$$\u0027, display: false},\n {left: \u0027$$\u0027, right: \u0027$$\u0027, display: true},\n {left: \u0027$\u0027, right: \u0027$\u0027, display: false}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e定义字符串s为Prefect Number,当且仅当s为以‘8’开头的数字字符串,且长度为|s| \u003d 11。\u003c/p\u003e\n现在给你一个字符串t,问是否能通过删除t的一些子串,使t成为Prefect Number。"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e输入第一行为一个整数T(T \u003c 100),表示T组测试数据。\u003c/p\u003e\n\u003cp\u003e每组测试数据的第一行有一个整数n(n \u003c 32143),表示字符串的长度。\u003c/p\u003e\n每组测试数据的第二行有一个字符串t,不含空格。"}},{"title":"Output","value":{"format":"HTML","content":"输出有T行,如果能成为Prefect Number输出“YES”,否则“NO”."}},{"title":"Example","value":{"format":"HTML","content":"2\u003cbr\u003e\n11\u003cbr\u003e\n88888888888\u003cbr\u003e\n12\u003cbr\u003e\n008888888888"}},{"title":"Note","value":{"format":"HTML","content":"YES\u003cbr\u003e\nNO"}}]}