#include <iostream>
#include <queue>
using namespace std;

int main() {
    int t;
    cin >> t;
    while (t--) {
        int n;
        cin >> n;
        queue<long long> q;
        q.push(1);

        while (n--) {
            long long front = q.front();
            q.pop();

            cout << front << " ";

            q.push(front * 10);
            q.push(front * 10 + 1);
        }

        cout << endl;
    }
    return 0;
}

