Help me in solving PARLIAMENT problem

My issue

My code

# cook your dish here
T=int(input())
for i in range(T):
    X,N=map(int,input().split())
    if (X>=(N/2)):
        print("YES")
    else:
        print("NO")

Problem Link: PARLIAMENT Problem - CodeChef

@godhalaswetha
Just a little mistake it should be N>=X/2;
i have corrected it in your code.

# cook your dish here
T=int(input())
for i in range(T):
    X,N=map(int,input().split())
    if (N>=(X/2)):
        print("YES")
    else:
        print("NO")