Help me in solving GDTURN problem

My issue

how to take test case

My code

# cook your dish here
T=int(input())
while(T>0):
 x,y=map(int,input().split())
if(x+y>6):
  print('YES')
else:
  print('NO')

Problem Link: GDTURN Problem - CodeChef

T=int(input())
for i in range(T):
    x,y=map(int,input().split())
    if(x+y>6):
        print('YES')
    else:
        print('NO')