#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int count = 0;
    while (count < n) {
      cout << 5 << " ";
      count++;
    }
    cout << endl;
  }
  return 0;
}
