#include <bits/stdc++.h>
using namespace std;
bool sortbysecdesc(const pair<int, int> &a, const pair<int, int> &b) {
  return a.second > b.second;
}
void solve() {
  long long int n;
  cin >> n;
  for (int i = 0; i < n; i++) cout << 1 << " ";
  cout << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long int tt = 1;
  cin >> tt;
  while (tt--) {
    solve();
  }
  return 0;
}
