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