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