diff --git a/python/willist.py b/python/willist.py new file mode 100644 index 0000000..8e5fc1b --- /dev/null +++ b/python/willist.py @@ -0,0 +1,15 @@ +# your code goes here +n = int(input()) + +if(n == 1): + print("TAK") + +else: + while(n % 2 == 0 and n > 0): + n /= 2 + if( n == 1 ): + print("TAK") + break + + if(n > 1): + print("NIE")