#include <bits/stdc++.h>
using namespace std;
const int N = 200005;
int n, t;
void solve() {
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 0; i < n; i++) {
      cout << 3 << " ";
    }
    cout << endl;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout << fixed << setprecision(13);
  solve();
  return 0;
}
