#include <bits/stdc++.h>
const long long inf = 2e9 + 1, mod = 1e9 + 7;
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 0; i < n; i++) cout << 1 << " ";
    cout << endl;
  }
}
