#include <bits/stdc++.h>
int main() {
  long long int t, n, temp = 1;
  std::vector<long long int> a;
  std::cin >> t;
  for (long long int i = 0; i < t; i++) {
    std::cin >> n;
    auto copy = temp;
    for (long long int j = 0; j < n; j++) {
      std::cout << copy << " ";
    }
    std::cout << std::endl;
  }
  return 0;
}
