#include <bits/stdc++.h>
using namespace std;
long long denom = 998244353;
long long powmod(long long a, long long b) {
  long long res = 1;
  a %= denom;
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % denom;
    a = a * a % denom;
  }
  return res;
}
int main(int argc, const char* argv[]) {
  ios_base::sync_with_stdio(false);
  long long t;
  cin >> t;
  while (t-- > 0) {
    long long n;
    cin >> n;
    for (long long i = (0); i < (n); i++) cout << 1 << " ";
    cout << endl;
  }
  return 0;
}
