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