eolymp
bolt
Try our new interface for solving problems
Problems

Degrees of two

Degrees of two

For a given positive integer $n$ print all powers of two less than $n$ in ascending order. \InputFile One positive integer $n\:(n \le 10^9)$. \OutputFile Print all powers of two less than $n$ in ascending order.
Time limit 1 second
Memory limit 128 MiB
Input example #1
7
Output example #1
2 4
Author Matviychuk Sergiy Volodymyrovych
Source "ABC programming"