#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n;
  cin >> t;
  while (t--) {
    int a = 1000;
    cin >> n;
    while (n--) {
      cout << a << " ";
    }
    cout << endl;
  }
}
