#include <bits/stdc++.h>
using namespace std;
int t;
int main() {
  cin >> t;
  for (int o = 1; o <= t; o++) {
    int n;
    cin >> n;
    for (int i = 1; i <= n; i++) cout << 1 << ' ';
    cout << endl;
  }
}
