#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n, i = 0;
  cin >> t;
  for (int j = 0; j < t; j++) {
    cin >> n;
    for (i = 0; i < n; i++) cout << 1 << " ";
    cout << endl;
  }
  return 0;
}
