#include <bits/stdc++.h>
int main() {
  int t;
  std::cin >> t;
  for (int i = 0; i < t; i++) {
    int n;
    std::cin >> n;
    std::vector<int> a(n);
    for (int i2 = 0; i2 < n; i2++) {
      a[i2] = 2;
      std::cout << a[i2] << " ";
    }
    std::cout << std::endl;
  }
  return 0;
}
