#include <bits/stdc++.h>
const int N = 1000010;
const int MOD = 1e9 + 7;
using namespace std;
int main() {
  int _ = 1;
  scanf("%d", &_);
  while (_--) {
    int c = 1;
    int n;
    scanf("%d", &n);
    for (int i = 1; i <= n; ++i) printf("4 ");
    printf("\n");
  }
  return 0;
}
