#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int n;
    cin >> n;
    if (n <= 50) {
      for (long long int i = 0; i < n; i++) {
        cout << (2 * i) + 1 << " ";
      }
    } else {
      for (long long int i = 0; i < n; i++) {
        cout << "1"
             << " ";
      }
    }
    cout << "\n";
  }
}
