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