{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n .markdown img {\n max-width: 900px;\n display: block;\n margin: 10px auto;\n }\n .markdown code {\n display: inline-block;\n padding: 0 4px;\n margin: 0;\n background-color: rgba(0, 0, 0, 0.04);\n border-radius: 3px;\n font-weight: bold;\n }\n .markdown pre code {\n display: block;\n padding: 20px;\n font-weight: normal;\n }\n .markdown table {\n width: 100%;\n table-layout: fixed;\n border-collapse: collapse;\n }\n .markdown table th {\n font-size: 13px;\n text-align: left;\n padding: 10px;\n border: 1px solid #e0e0e0;\n background: #f1f1f1;\n }\n .markdown table td {\n font-size: 14px;\n padding: 5px 10px;\n border: 1px solid #e0e0e0;\n }\n .markdown-form-widget .markdown-notice p {\n padding: 0;\n margin: 0;\n color: #999999;\n font-size: 11px;\n }\n\u003c/style\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"latex latex-raw\"\u003eIn the year 2134, when the Earth population reached \u003cstrong\u003e10^18\u003c/strong\u003e the people decided to celebrate this event. \u003cstrong\u003eN\u003c/strong\u003e diminutive bulbs (the linear size of each bulb was less than \u003cstrong\u003e0.1\u003c/strong\u003e millimeters) were placed on a huge area specially allotted for the celebration. The bulbs were numbered with consecutive integers from \u003cstrong\u003e1\u003c/strong\u003e to \u003cstrong\u003eN\u003c/strong\u003e in some order.\u003cp\u003e\u003c/p\u003e\n\n\u003cp\u003eIn the beginning, all the bulbs were off. Afterwards, exactly \u003cstrong\u003e10^18\u003c/strong\u003e steps were performed - one per each citizen of Earth. At the \u003cstrong\u003ei\u003c/strong\u003e-th step, the states of all bulbs with number \u003cstrong\u003eX\u003c/strong\u003e such that \u003cstrong\u003ei\u003c/strong\u003e divides \u003cstrong\u003eX\u003c/strong\u003e toggled at the same time. If a bulb is on, toggling its state would switch it o\u0026#x1b;ff, and vice versa, toggling the state of an o\u0026#x1b;ff bulb would switch it on. The interval between the consecutive steps was only \u003cstrong\u003e1\u003c/strong\u003e picosecond, so the whole celebration took around a week and a half.\u003c/p\u003e\n\n\u003cp\u003eActually, all this stu\u0026#x1b; looked as pointless \u0026#x1d;ickering, but the spectators were delighted by the colossal scale of the wonderful event. Finally, it was over. There was nothing more to look at, and \u0026#x16;- if you think soberly -\u0026#x16; nothing worthy ever happened.\u003c/p\u003e\n\n\u003cp\u003eIn the meanwhile, after step \u003cstrong\u003e10^18\u003c/strong\u003e, some of the bulbs are still on. While the people are recovering from the shock, pondering why did they need such a celebration and who will cover its costs, we suggest that you count the number of bulbs which are still on and consume the precious power.\u003c/p\u003e\n\n\u003cp\u003e\u003c/p\u003e\u003ch2\u003eInput\u003c/h2\u003e\u003cp\u003e\u003c/p\u003e\n\n\u003cp\u003eThe only line of input contains the integer \u003cstrong\u003eN\u003c/strong\u003e (\u003cstrong\u003e1\u003c/strong\u003e ≤ \u003cstrong\u003eN\u003c/strong\u003e ≤ \u003cstrong\u003e2^63\u003c/strong\u003e -\u003cstrong\u003e 1\u003c/strong\u003e).\u003c/p\u003e\n\n\u003cp\u003e\u003c/p\u003e\u003ch2\u003eOutput\u003c/h2\u003e\u003cp\u003e\u003c/p\u003e\n\n\u003cp\u003ePrint a single integer -\u0026#x16; the number of bulbs which are still on after step \u003cstrong\u003e10^18\u003c/strong\u003e.\u003c/p\u003e\n\n\u003c/div\u003e"}},{"title":"Example","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\u003e1\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}