#HEADBOB
for _ in range(int(input())):
    len = int(input())
    s = input()
    if ('I' in s):
        print("INDIAN")
    elif('Y' in s):
        print("NOT INDIAN")
    else:
        print("NOT SURE")

