#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  long l, i, n, mini, ans;
  cin >> t;
  for (int test = 1; test <= t; test++) {
    cin >> n;
    for (i = 1; i <= n; i++) cout << 1000 << " ";
    cout << '\n';
  }
  return 0;
}
