Help me in solving GDTURN problem

My issue

help

My code

# cook your dish here
T = input()
X,Y = map(int,input().split)
if(X+Y>6):
    print("NO")
else:
    print("NO")

Problem Link: GDTURN Problem - CodeChef

@akshaya704
U have to do simply like this.

T=int(input())
for i in range(T):
    X,Y=map(int,input().split())
    
    if X+Y>6:
        print("YES")
    else:
        print("NO")