#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int i, j, n, m, a, b, c, d, e, x, y, z, cnt = 0, k = 0, l = 0,
                                                    sum = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cout << n << ' ';
  }
  cout << endl;
}
int main() {
  long long int t;
  cin >> t;
  while (t--) solve();
}
