def is_power_of_two(n):
    if n<=0:
       return false
    else:
       return n&(n-1)==0
n=int(input("Enter a number:"))
if is_power_of_two(n):
    print('{} is a power of two'.format(n))
else:
    print('{} is not a power of two'.format(n))
