#include <bits/stdc++.h>
using namespace std;
const int maxn = 100005;
int t, n;
int main() {
  scanf("%d", &t);
  while (t--) {
    scanf("%d", &n);
    printf("1");
    for (int i = 1; i < n; i++) {
      printf(" 1");
    }
    printf("\n");
  }
  return 0;
}
