Help me in solving LB03 problem

My issue

My code

# Update the program below to solve the problem

t = int(input())            
for i in range(t):          
    X = int(input())
    if X%3==0:
        print(0)
    elif (X+1)%3==0:
        print(-1)
    else:
        print(2)

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

Seriously? I told you to text me bruh

oh this lmao i didn’t even know i posted this