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