Help me in solving MONSTER1 problem

My issue

My code

T=int(input())
H, X, Y=map(int, input().split())
for i in T:
    if (H-X)+Y == 0:
        PRINT(1)
    else:
        PRINT(0)

Problem Link: CodeChef: Practical coding for everyone