#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    long long k = 1;
    long long n;
    cin >> n;
    for (long long int i = 0; i < n; i++) {
      if (i & 1)
        cout << 384 << " ";
      else
        cout << 44 << " ";
    }
    cout << endl;
  }
  return 0;
}
