WILLITST - Will it ever stop
When Bob was in library in University of Warsaw he saw on one of facades caption :"Will it ever stop?" and below some mysterious code:
while n > 1 if n mod 2 = 0 then n:=n/2 else n:=3*n+3
Help him finding it out !
In first line one number n<=10^14.
Print "TAK" if program will stop, otherwise print "NIE"
Input: 4 Output: TAK
There's only one number, please read input statement.
i am getting WA .are there any special cases to be considered ?