#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int x = 0, t = 1;
  char ch = getchar();
  while ((ch < '0' || ch > '9') && ch != '-') ch = getchar();
  if (ch == '-') t = -1, ch = getchar();
  while (ch <= '9' && ch >= '0') x = x * 10 + ch - 48, ch = getchar();
  return x * t;
}
int main() {
  int T = read();
  while (T--) {
    int n = read(), c = 1000;
    for (int i = n; i > 0; i -= 2)
      if (i > 1)
        printf("%d %d ", c, c), --c;
      else
        printf("%d", c);
    printf("\n");
  }
  return 0;
}
