#include <bits/stdc++.h>
using namespace std;
int q;
int n, m;
long long mas[200000];
int main() {
  cin >> q;
  while (q--) {
    cin >> n;
    for (int i = 1; i <= n; i++) cout << 1 << ' ';
    cout << endl;
  }
}
