#include <bits/stdc++.h>
using namespace std;
void func() {
  long long n;
  cin >> n;
  while (n--) {
    cout << 1 << " ";
  }
  cout << "\n";
}
int main() {
  long long t;
  cin >> t;
  while (t--) {
    func();
  }
}
