{"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\u003eSonya decided to organize an exhibition of flowers. Since the girl likes only roses and lilies, she decided that only these two kinds of flowers should be in this exhibition.\u003c/p\u003e\u003cp\u003eThere are $$$n$$$ flowers in a row in the exhibition. Sonya can put either a rose or a lily in the $$$i$$$-th position. Thus each of $$$n$$$ positions should contain exactly one flower: a rose or a lily.\u003c/p\u003e\u003cp\u003eShe knows that exactly $$$m$$$ people will visit this exhibition. The $$$i$$$-th visitor will visit all flowers from $$$l_i$$$ to $$$r_i$$$ inclusive. The girl knows that each segment has its own \u003cspan class\u003d\"tex-font-style-it\"\u003ebeauty\u003c/span\u003e that is equal to the product of the number of roses and the number of lilies.\u003c/p\u003e\u003cp\u003eSonya wants her exhibition to be liked by a lot of people. That is why she wants to put the flowers in such way that the sum of \u003cspan class\u003d\"tex-font-style-it\"\u003ebeauties\u003c/span\u003e of all segments would be maximum possible.\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eThe first line contains two integers $$$n$$$ and $$$m$$$ ($$$1\\leq n, m\\leq 10^3$$$)\u0026nbsp;— the number of flowers and visitors respectively.\u003c/p\u003e\u003cp\u003eEach of the next $$$m$$$ lines contains two integers $$$l_i$$$ and $$$r_i$$$ ($$$1\\leq l_i\\leq r_i\\leq n$$$), meaning that $$$i$$$-th visitor will visit all flowers from $$$l_i$$$ to $$$r_i$$$ inclusive.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003ePrint the string of $$$n$$$ characters. The $$$i$$$-th symbol should be «\u003cspan class\u003d\"tex-font-style-tt\"\u003e0\u003c/span\u003e» if you want to put a rose in the $$$i$$$-th position, otherwise «\u003cspan class\u003d\"tex-font-style-tt\"\u003e1\u003c/span\u003e» if you want to put a lily.\u003c/p\u003e\u003cp\u003eIf there are multiple answers, print any.\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\u003e5 3\n1 3\n2 4\n2 5\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e01100\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\u003e6 3\n5 6\n1 4\n4 6\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e110010\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, Sonya can put roses in the first, fourth, and fifth positions, and lilies in the second and third positions;\u003c/p\u003e\u003cul\u003e \u003cli\u003e in the segment $$$[1\\ldots3]$$$, there are one rose and two lilies, so the \u003cspan class\u003d\"tex-font-style-it\"\u003ebeauty\u003c/span\u003e is equal to $$$1\\cdot 2\u003d2$$$; \u003c/li\u003e\u003cli\u003e in the segment $$$[2\\ldots4]$$$, there are one rose and two lilies, so the \u003cspan class\u003d\"tex-font-style-it\"\u003ebeauty\u003c/span\u003e is equal to $$$1\\cdot 2\u003d2$$$; \u003c/li\u003e\u003cli\u003e in the segment $$$[2\\ldots5]$$$, there are two roses and two lilies, so the \u003cspan class\u003d\"tex-font-style-it\"\u003ebeauty\u003c/span\u003e is equal to $$$2\\cdot 2\u003d4$$$. \u003c/li\u003e\u003c/ul\u003e\u003cp\u003eThe total \u003cspan class\u003d\"tex-font-style-it\"\u003ebeauty\u003c/span\u003e is equal to $$$2+2+4\u003d8$$$.\u003c/p\u003e\u003cp\u003eIn the second example, Sonya can put roses in the third, fourth, and sixth positions, and lilies in the first, second, and fifth positions;\u003c/p\u003e\u003cul\u003e \u003cli\u003e in the segment $$$[5\\ldots6]$$$, there are one rose and one lily, so the \u003cspan class\u003d\"tex-font-style-it\"\u003ebeauty\u003c/span\u003e is equal to $$$1\\cdot 1\u003d1$$$; \u003c/li\u003e\u003cli\u003e in the segment $$$[1\\ldots4]$$$, there are two roses and two lilies, so the \u003cspan class\u003d\"tex-font-style-it\"\u003ebeauty\u003c/span\u003e is equal to $$$2\\cdot 2\u003d4$$$; \u003c/li\u003e\u003cli\u003e in the segment $$$[4\\ldots6]$$$, there are two roses and one lily, so the \u003cspan class\u003d\"tex-font-style-it\"\u003ebeauty\u003c/span\u003e is equal to $$$2\\cdot 1\u003d2$$$. \u003c/li\u003e\u003c/ul\u003e\u003cp\u003eThe total \u003cspan class\u003d\"tex-font-style-it\"\u003ebeauty\u003c/span\u003e is equal to $$$1+4+2\u003d7$$$.\u003c/p\u003e"}}]}