<filename>SPOJ/WILLITST.py
n = long(raw_input())

powerof2 = n & n - 1

if not powerof2 :
    print "TAK"
else :
    print "NIE"

<filename>SPOJ/WILLITST.py
n = long(raw_input())

powerof2 = n & n - 1

if not powerof2 :
    print "TAK"
else :
    print "NIE"
