LearnPy Hub
← Iterators & Generators problems
Medium

First Over a Limit

Using an infinite generator of powers of 2 (1, 2, 4, ...), print the first power strictly greater than the input number.

Input

One integer ≥ 0.

Output

A power of 2.

Sample 1

Input
100
Output
128

Sample 2

Input
0
Output
1
solution.py
Output appears here
First Over a Limit · Python practice problem · LearnPy Hub