#include <bits/stdc++.h>
using namespace std;
const long long N = 3e5 + 5, MOD = 1e9 + 7, MX = 1e9 + 9;
int n, m, T, a[N];
map<int, int> mp;
vector<int> ans;
int main() {
  scanf("%d", &T);
  while (T--) {
    scanf("%d", &n);
    for (int i = 0; i < n; i++) printf("1 ");
    puts("");
  }
  return 0;
}
