COMPSEM2  TARANIAMITKAUSHIK
Tarani likes numbers which contain only the digit 1 while Amit likes numbers which contain only the digit 5.
Kaushik likes numbers which are sum of two numbers, one containing only digit 1 and the other containing only digit 5.
Input
First line contains an integer T(<10) denoting the total number of test cases. Each test case contains an integer N(1<=N<=100).
Output
Print "KAUSHIK" if kaushik likes the number. If kaushik doesn't like the number, print "AMIT" if amit likes it or "TARANI" if tarani likes it. Else print "NONE".
Sample input
3
116
11
3
Sample Output
KAUSHIK
TARANI
NONE
Explanation
116 is sum of 111 + 5 So kaushik likes it. 11 contains only digit 1 so tarani likes it. 3 doesn't satisfy the liking condition of anyone.
hide comments
nadstratosfer:
20180523 11:19:17
Assume 1 <= N <= 1000. 

Incognito!:
20130405 08:08:40
Why is 116 in the example if the test numbers should be N(1<=N<=100)? Last edit: 20130405 10:08:10 
Added by:  amit karmakar 
Date:  20120404 
Time limit:  0.400s 
Source limit:  50000B 
Memory limit:  1536MB 
Cluster:  Cube (Intel G860) 
Languages:  All except: ASM64 