← Problem book: Python Lesson 44 of 96 · 10 XP

Largest power of two

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

You are given n (n ≥ 1). Print the largest power of two that is not greater than n.

Example

Input:

10

Output:

8

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.