{"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":"\u003cstyle type\u003d\u0027text/css\u0027\u003e .input, .output {border: 1px solid #888888;} .output {margin-bottom:1em;position:relative;top:-1px;} .output pre,.input pre {background-color:#EFEFEF;line-height:1.25em;margin:0;padding:0.25em;} .title {background-color:#FFFFFF;border-bottom: 1px solid #888888;font-family:arial;font-weight:bold;padding:0.25em;} \u003c/style\u003e \u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027]], displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027]]}\n });\n \u003c/script\u003e\n \u003cscript type\u003d\"text/javascript\" async\n src\u003d\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\"\u003e\n \u003c/script\u003e\n\u003cp\u003eAfter playing Neo in the legendary \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eMatrix\u003c/span\u003e\" trilogy, Sherlock Holmes started doubting himself: maybe we really live in virtual reality? To find if this is true, he needs to solve the following problem.\u003c/p\u003e\n\u003cp\u003eLet\u0027s call a string consisting of only zeroes and ones \u003cspan class\u003d\"tex-font-style-bf\"\u003egood\u003c/span\u003e if it contains \u003cspan class\u003d\"tex-font-style-bf\"\u003edifferent\u003c/span\u003e numbers of zeroes and ones. For example, \u003cspan class\u003d\"tex-font-style-tt\"\u003e1\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-tt\"\u003e101\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-tt\"\u003e0000\u003c/span\u003e are good, while \u003cspan class\u003d\"tex-font-style-tt\"\u003e01\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-tt\"\u003e1001\u003c/span\u003e, and \u003cspan class\u003d\"tex-font-style-tt\"\u003e111000\u003c/span\u003e are not good.\u003c/p\u003e\n\u003cp\u003eWe are given a string s of length n consisting of only zeroes and ones. We need to cut s into \u003cspan class\u003d\"tex-font-style-bf\"\u003eminimal possible\u003c/span\u003e number of substrings s1, s2,..., sk such that \u003cspan class\u003d\"tex-font-style-bf\"\u003eall\u003c/span\u003e of them are good. More formally, we have to find \u003cspan class\u003d\"tex-font-style-bf\"\u003eminimal\u003c/span\u003e by number of strings sequence of good strings s1, s2,..., sk such that their concatenation (joining) equals s, i.e. s1 + s2 +...+ sk \u003d s.\u003c/p\u003e\n\u003cp\u003eFor example, cuttings \u003cspan class\u003d\"tex-font-style-tt\"\u003e110010\u003c/span\u003e into \u003cspan class\u003d\"tex-font-style-tt\"\u003e110\u003c/span\u003e and \u003cspan class\u003d\"tex-font-style-tt\"\u003e010\u003c/span\u003e or into \u003cspan class\u003d\"tex-font-style-tt\"\u003e11\u003c/span\u003e and \u003cspan class\u003d\"tex-font-style-tt\"\u003e0010\u003c/span\u003e are valid, as \u003cspan class\u003d\"tex-font-style-tt\"\u003e110\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-tt\"\u003e010\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-tt\"\u003e11\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-tt\"\u003e0010\u003c/span\u003e are all good, and we can\u0027t cut \u003cspan class\u003d\"tex-font-style-tt\"\u003e110010\u003c/span\u003e to the smaller number of substrings as \u003cspan class\u003d\"tex-font-style-tt\"\u003e110010\u003c/span\u003e isn\u0027t good itself. At the same time, cutting of \u003cspan class\u003d\"tex-font-style-tt\"\u003e110010\u003c/span\u003e into \u003cspan class\u003d\"tex-font-style-tt\"\u003e1100\u003c/span\u003e and \u003cspan class\u003d\"tex-font-style-tt\"\u003e10\u003c/span\u003e isn\u0027t valid as both strings aren\u0027t good. Also, cutting of \u003cspan class\u003d\"tex-font-style-tt\"\u003e110010\u003c/span\u003e into \u003cspan class\u003d\"tex-font-style-tt\"\u003e1\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-tt\"\u003e1\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-tt\"\u003e0010\u003c/span\u003e isn\u0027t valid, as it isn\u0027t minimal, even though all 3 strings are good.\u003c/p\u003e\n\u003cp\u003eCan you help Sherlock? We can show that the solution always exists. If there are multiple optimal answers, print any.\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eThe first line of the input contains a single integer n (1\u003c\u003dn\u003c\u003d100);— the length of the string s.\u003c/p\u003e\n\u003cp\u003eThe second line contains the string s of length n consisting only from zeros and ones.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003eIn the first line, output a single integer k (1\u003c\u003dk);— a \u003cspan class\u003d\"tex-font-style-bf\"\u003eminimal\u003c/span\u003e number of strings you have cut s into.\u003c/p\u003e\n\u003cp\u003eIn the second line, output k strings s1, s2,..., sk separated with spaces. The length of each string has to be positive. Their concatenation has to be equal to s and all of them have to be good.\u003c/p\u003e\n\u003cp\u003eIf there are multiple answers, print any.\u003c/p\u003e"}},{"title":"Examples","value":{"format":"HTML","content":"\u003cdiv class\u003d\"sample-test\"\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e1\n1\n\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e1\n1\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e2\n10\n\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e2\n1 0\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e6\n100011\n\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e2\n100 011\n\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}},{"title":"Note","value":{"format":"HTML","content":"\u003cp\u003eIn the first example, the string \u003cspan class\u003d\"tex-font-style-tt\"\u003e1\u003c/span\u003e wasn\u0027t cut at all. As it is good, the condition is satisfied.\u003c/p\u003e\n\u003cp\u003eIn the second example, \u003cspan class\u003d\"tex-font-style-tt\"\u003e1\u003c/span\u003e and \u003cspan class\u003d\"tex-font-style-tt\"\u003e0\u003c/span\u003e both are good. As \u003cspan class\u003d\"tex-font-style-tt\"\u003e10\u003c/span\u003e isn\u0027t good, the answer is indeed minimal.\u003c/p\u003e\n\u003cp\u003eIn the third example, \u003cspan class\u003d\"tex-font-style-tt\"\u003e100\u003c/span\u003e and \u003cspan class\u003d\"tex-font-style-tt\"\u003e011\u003c/span\u003e both are good. As \u003cspan class\u003d\"tex-font-style-tt\"\u003e100011\u003c/span\u003e isn\u0027t good, the answer is indeed minimal.\u003c/p\u003e"}}]}