#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    long long int cnt = 0;
    long long int i = 1;
    while (cnt < n) {
      cout << i << " ";
      cnt++;
    }
    cout << endl;
  }
  return 0;
}
