#!/usr/bin/env python3

T = int(input())
for _ in range(T):
    N = int(input())
    print(' '.join(['-1']*N))

#!/usr/bin/env python3

T = int(input())
for _ in range(T):
    N = int(input())
    print(' '.join(['-1']*N))

#!/usr/bin/env python3