#include <bits/stdc++.h>
using namespace std;
const unsigned int M = 1000000007;
bool isPrime(int n) {
  for (int i = 2; i * i <= n; i++)
    if (n % i == 0) return false;
  return true;
}
const int N = 1e6 + 7;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    for (int i = 0; i < n; i++) {
      cout << 1 << " ";
    }
    cout << "\n";
  }
}
