Help me in solving GDTURN problem

My issue

My code

# cook your dish here
T=6
x=1
y=4
sum=x+y
if sum>T:
    print('YES')
else:
    print('NO')

Problem Link: GDTURN Problem - CodeChef

t=int(input())
for i in range (t):
a,b=map(int,input().split())
if a+b>6:
print(“YES”)
else:
print(“NO”)