#include <bits/stdc++.h>
int main() {
  unsigned short t;
  scanf("%hu", &t);
  while (t--) {
    unsigned short n;
    scanf("%hu", &n);
    for (unsigned short i = 0; i < n; i++) {
      printf("1 ");
    }
    putchar('\n');
  }
}
