Help me in solving GAMEOFPILES1 problem

My issue

My code

# cook your dish here
for _ in range(int(input())):
    n = int(input())
    a = list(map(int,input().split()))
    if(min(a)%2!=0):
        print('CHEF')
    else:
        print('CHEFINA')

Problem Link: GAMEOFPILES1 Problem - CodeChef

@karthi_2213
The logic is if the count of odd number is odd then chef will win and if any of the element is 1 then chef will win .
In else case chefina will win.