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