For this Question: Given a number n, find the highest power of 2 that is smaller than or equal to n.The first line of the input contains the value n.

Constraints
1 <= n <= 1e18Print the highest power of 2 that is smaller than or equal to n.Sample Input 
10

Sample Output 
8
 
Explanation
8 is the highest power of 2 which is less than equal to 10, 16 is also there but it's higher than 10., I have written this Solution Code: a=int(input())
x=1
while(x<a):
    x=x*2
print(x//2), In this Programming Language: Python, Now tell me if this Code is compilable or not?