n = int(input())

def ispowerof2(n):

    if n & (n - 1):
        return False
    return True

print(ispowerof2(n))
11f32a95ce6d526e1900e065aba193d5dd883116
<mask token>

<mask token>


def ispowerof2(n):
    if n & n - 1:
        return False
    return True


<mask token>

<mask token>


def ispowerof2(n):
    if n & n - 1:
        return False
    return True


print(ispowerof2(n))

n = int(input())


def ispowerof2(n):
    if n & n - 1:
        return False
    return True


print(ispowerof2(n))

n = int(input())

def ispowerof2(n):

    if n & (n - 1):
        return False
    return True

print(ispowerof2(n))