for i in range(int(input())):
    n = int(input());print("1 "*n)











469581f95d7344d51a9c0270eb12071b7c1f2bce
<mask token>

for i in range(int(input())):
    n = int(input())
    print('1 ' * n)

for i in range(int(input())):
    n = int(input());print("1 "*n)










