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