{"trustable":false,"sections":[{"title":"","value":{"format":"MD","content":"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\u003csup\u003e1\u003c/sup\u003e\u003d2. Similarly, if the number is 4, 5, 6, or 7, convert it to 2\u003csup\u003e2\u003c/sup\u003e\u003d4; if the number is 8, 9, 10, 11,...,15, convert it to 2\u003csup\u003e3\u003c/sup\u003e\u003d8.\n\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\n### Input\nThe input is given in the following form.\n\nN\nThe number N (2≤N≤106) is given in one line.\n\n### Output\n\nOutput the converted number in one line.\n\n### Sample Input and Output\n\nSample Input 1\n```\n54\n```\nSample Output 1\n```\n32\n```\nSample Input 2\n```\n1024\n```\nSample Output 2\n```\n1024\t\n```"}}]}