Help me in solving LB03 problem

My issue

It’s not taking a loop giving other outputs. It’s taking only one input but not other outputs.

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

@ayush9123 - indentation is missing.
Add correct indentation and this should run perfectly

# 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)