#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, i, j, k, l, m, n, p, q, r, s, t, v, w, x, y, z;
  cin >> t;
  for (i = 1; i <= t; i++) {
    cin >> n;
    for (j = 1; j <= n; j++) {
      cout << "1 ";
    }
    cout << endl;
  }
  return 0;
}
