#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, x1, x2, s = 0, x, y1 = 0, y2 = 0, sm = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x;
    for (int i = 0; i < x; i++) cout << 7 << " ";
    cout << endl;
  }
  return 0;
}
