#include <bits/stdc++.h>
using namespace std;
long long t, n;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> t;
  while (t--) {
    cin >> n;
    while (n--) cout << "1 ";
    cout << "\n";
  }
}
