Help me in solving CS10A problem

My issue

My code

# The code below is incorrect. Debug the code to solve this problem

t=int(input())
for i in range(t):
    X, Y = map(int, input().split())
    if X==Y:
        print('YES')
    else:
        print('NO')
    

Learning course: Python for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone

t=int(input())
for i in range(t):
X, Y = map(int, input().split())
if X==Y and (X>=1 and Y>=1):
print(‘YES’)
else:
print(‘NO’)