#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  for (long long i = 1; i <= n; i++) cout << 1 << ' ';
  cout << '\n';
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long _ = 1;
  cin >> _;
  for (long long i = 1; i <= _; i++) {
    solve();
  }
  return 0;
}
