#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n;
  cin >> n;
  while (n--) cout << "1 ";
  cout << "\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long int t;
  cin >> t;
  while (t--) solve();
}
