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