#include <bits/stdc++.h>
using namespace std;
const int mxn = 1e5 + 5;
const int inf = 1e9;
void solve() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) cout << 1 << " ";
  cout << endl;
}
int main() {
  int t = 1;
  cin >> t;
  while (t--) solve();
}
