私の解答
n = int(input())
for i in range(5):
values = input()
print(values)
解答例
M = int(input())
A = [[0] * M for _ in range(5)]
for i in range(5):
values = input().split()
for j in range(M):
A[i][j] = int(values[j])
for i in range(5):
for j in range(M):
print(A[i][j], end="")
if j < M - 1:
print(end=" ")
else:
print()