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