#include <bits/stdc++.h>
using namespace std;
const int maxn = 3e5 + 5;
int main() {
  ios::sync_with_stdio(false);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    for (int i = 1; i <= n; i++) printf("1 ");
    printf("\n");
  }
  return 0;
}
