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