{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003ch1\u003ePower of 2\u003c/h1\u003e\n \n\u003cp\u003e\n Convert the given number to the largest power of two that is less than or equal to the number. For example, if it is 2 or 3, convert it to $2^1\u003d2$. Similarly, if the number is 4, 5, 6, or 7, convert it to $2^2\u003d4$; if the number is 8, 9, 10, 11,...,15, convert it to $2^3\u003d8$. \n\u003c/p\u003e\n\n\u003cp\u003e\nWrite a program that converts a given number to the largest power of two among the numbers less than or equal to that number.\n\u003c/p\u003e\n\n\n\u003ch2\u003eInput\u003c/h2\u003e\n\u003cp\u003e\n The input is given in the following form.\n\u003c/p\u003e\n\u003cpre\u003e$N$\n\u003c/pre\u003e\n\n\u003cp\u003e\n The number $N$ ($2 \\leq N \\leq 10^6$) is given in one line.\n\u003c/p\u003e\n\n\u003ch2\u003eOutput\u003c/h2\u003e\n\u003cp\u003e\n Output the converted number in one line.\n\u003c/p\u003e\n\n\u003ch2\u003eSample Input and Output\u003c/h2\u003e\n\n\u003ch3\u003eSample Input 1\u003c/h3\u003e\n\u003cpre\u003e54\n\u003c/pre\u003e\n\n\u003ch3\u003eSample Output 1\u003c/h3\u003e\n\u003cpre\u003e32\n\u003c/pre\u003e\n\n\u003ch3\u003eSample Input 2\u003c/h3\u003e\n\u003cpre\u003e1024\n\u003c/pre\u003e\n\n\u003ch3\u003eSample Output 2\u003c/h3\u003e\n\u003cpre\u003e1024\t\n\u003c/pre\u003e\n"}}]}