#include <bits/stdc++.h>
using namespace std;
long long n, j = 0, i, t, f, a[500010], ma, ii, x, y;
map<long long, long long> m;
map<long long, long long> mm;
int main() {
  t = 1;
  cin >> t;
  while (t--) {
    cin >> n;
    for (i = 0; i < n; i++) cout << 1 << " ";
    cout << '\n';
  }
}
