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