def even(n):
    return not (n & 0b1)
while True:    
    print(even(int(input())))
273000160fb6624189758957c7d59123e98f382a
<mask token>

def even(n):
    return not n & 1


<mask token>

def even(n):
    return not n & 1


while True:
    print(even(int(input())))

def even(n):
    return not (n & 0b1)
while True:    
    print(even(int(input())))