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