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