Write a program, which takes an integer N and if the number is less than 10 then display "Thanks for helping Chef!" otherwise print "-1".

-----Input-----

The first line contains an integer T, total number of testcases. Then follow T lines, each line contains an integer N. 

-----Output-----
For each test case, output the given string or -1 depending on conditions, in a new line.

-----Constraints-----
- 1 ≤ T ≤ 1000
- -20 ≤ N ≤ 20

-----Example-----
Input
3 
1
12
-5
Output
Thanks for helping Chef!
-1
Thanks for helping Chef!

Starter code:

Solutions:
# cook your dish here
for i in range(int(input())):
    x=int(input())
    if x<10:
        print("Thanks for helping Chef!")
    else:
        print("-1")


for _ in range(int(input())):
    if int(input())<10:
        print("Thanks for helping Chef!")
    else:
        print(-1)

# cook your dish here
t=int(input())
for i in range(t):
    n=int(input())
    if n<10:
        print("Thanks for helping Chef!")
    else:
        print("-1")


n=int(input())
for i in range(n):
    x=int(input())
    if x<10:
        print("Thanks for helping Chef!")
    else:
        print("-1")


# cook your dish here
n = int(input())
while n>0:
    if int(input())<10:
        print("Thanks for helping Chef!")
    else:
        print("-1")
    n = n-1

# cook your dish here
n = int(input())
while n>0:
    x = int(input())
    if x<10:
        print("Thanks for helping Chef!")
    else:
        print("-1")
    n = n-1

# cook your dish here
t=int(input())
for i in range(t):
    n=int(input())
    if(n<10):
        print('Thanks for helping Chef!')
    else:
        print('-1')

for _ in range(int(input())):
    n=int(input())
    if n <10:
        print('Thanks for helping Chef!')
    else:
        print(-1)


# cook your dish here
try:
    t=int(input())
    for t in range(0,t):
        n=int(input())
        if(n<10):
            print("Thanks for helping Chef!")
        else:
            print(-1)
except:pass

def thanks(n):
    if n < 10:
        print("Thanks for helping Chef!")
    else:
        print("-1")
    
t=int(input())
while t:
    t = t - 1
    n=int(input())
    thanks(n)

# cook your dish here
x=int(input())
for i in range(x):
    y=int(input())
    if y<10:
        print("Thanks for helping Chef!")
    else:
        print(-1)

# cook your dish here
for _ in range(int(input())):
    if int(input()) < 10:
        print("Thanks for helping Chef!")
    else:
        print("-1")


# cook your dish here
t = int(input())
for i in range(t):
    n = int(input())
    if(n < 10):
        print("Thanks for helping Chef!")
    else:
        print("-1")

# cook your dish here
T=int(input())
for i in range(T):
    x=int(input())
    if x<10:
        print("Thanks for helping Chef!")
    else:
        print("-1")


# cook your dish here
t=int(input())
for cases in range(t):
    n=int(input())
    if n<10:
        print('Thanks for helping Chef!')
    else:
        print(-1)
    print()

for t in range(int(input())):
    n=int(input())
    if n<10:print("Thanks for helping Chef!")
    else:print(-1)

# cook your dish here
n=int(input())
for i in range(n):
    x=int(input())
    if (x<10):
        print("Thanks for helping Chef!")
    else:
        print("-1")

# cook your dish here
a=int(input())
for i in range(a):
    b=int(input())
    if b<10:
        print("Thanks for helping Chef!")
    else:
        print(-1)


#Read the number of test cases.
T = int(input())
for tc in range(T):
	# Read integer
	n = int(input())
	if n<10:
	    print("Thanks for helping Chef!")
	else:
	    print("-1")


# cook your dish here
t = int(input())
for _ in range(t):
    n = int(input())
    if(n < 10):
        print("Thanks for helping Chef!")
    else:
        print('-1')


t=int(input())
for x in range(t):
    n=int(input())
    if n<10:
        print("Thanks for helping Chef!")
    else:
        print("-1")


t=int(input())
for i in range(t):
    n=int(input())
    if (n<10):
        print("Thanks for helping Chef!")
    else:
        print(-1)


# cook your dish here
t=int(input())
while t!=0:
    n=int(input())
    if n<10:
        print("Thanks for helping Chef!")
    else:
        print(-1)
    t-=1

List = []
n=int(input())
for i in range(0,n):
    a = int(input())
    List.append(a)
for element in List:
    if element <= 9:
        print("Thanks for helping Chef!")
    else:
        print("-1")

t=int(input())
i=0
while i<t:
    n=int(input())
    if n<10:
        print("Thanks for helping Chef!")
    else:
        print("-1")
    i+=1