Help me in solving AMR16D problem

My issue

cook your dish here

t=int(input())
for i in range(t):
s=input().split()
n=int(s[0])
k=int(s[1])
if (k % 3 == 1 and (k + 1) % 3 == 2) or (k % 3 == 2 and (k + 1) % 3 == 0) or (k % 3 == 0 and (k + 1) % 3 == 1):
print(“yes”)
else:
print(“no”)
why am i getting EOF error

My code

# cook your dish here
t=int(input())
for i in range(t):
    s=input().split()
    n=int(s[0])
    k=int(s[1])
    if (k % 3 == 1 and (k + 1) % 3 == 2) or (k % 3 == 2 and (k + 1) % 3 == 0) or (k % 3 == 0 and (k + 1) % 3 == 1):
        print("yes")
    else:
        print("no")

Problem Link: ATM queue Practice Coding Problem - CodeChef

@sushmitha2293
your logic is not right
Have corrected your code .
Hope u will get it

# cook your dish here
# cook your dish here
t=int(input())
for i in range(t):
    s=input().split()
    n=int(s[0])
    k=int(s[1])
    if (k % 3 == 1 or k%3==2):
        print("yes")
    else:
        print("no")