Help me in solving PREQ18 problem

My issue

t = int(input())
for i in range(t):
X, Y, Z = map(int, input().split())
print(X, Y, Z)

My code

# Update the program below to solve the problem

t = int(input())            
for i in range(t):          
    X, Y, Z = map(int, input().split())
    print(X, Y, Z)

Learning course: Design and Analysis of Algorithms
Problem Link: Problem(Farm animals) - Solve the complete problem in Design and Analysis of Algorithms