Skip to content

Instantly share code, notes, and snippets.

@completejavascript
Created September 15, 2018 06:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save completejavascript/0e2871e23dc312546610fbd43e1f6417 to your computer and use it in GitHub Desktop.
Save completejavascript/0e2871e23dc312546610fbd43e1f6417 to your computer and use it in GitHub Desktop.
n = long(input())
checkStop = 1
while(1):
if n <= 2:
break
if (n > 2 and n%2 != 0):
checkStop = 0
break
n = n/2
if checkStop == 1 :
print "TAK\n"
else:
print "NIE\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment