#include <bits/stdc++.h>

using namespace std;

using ll = long long;
using ul = unsigned long;
using ull = unsigned long long;

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(nullptr);

	int n;
	cin >> n;

	for (int i = 0; i < n; ++i)
	{
		int d;
		cin >> d;

        if (d == 1)
            cout << "10\n";
        else
		    cout << "9" << string(d-1, '0') << "\n";
	}

	return 0;
}