Help me in solving TAXSAVING problem

My issue

My code

# cook your dish here
a=int(input)
for i in range(a):
    x,y=map(int,input().split())
    print(x-y)

Problem Link: TAXSAVING Problem - CodeChef