#include using namespace std; typedef long long ll; typedef pair P; ll n,d; int main(void){ cin.tie(0); ios::sync_with_stdio(0); cin>>n; while(n--){ cin>>d; cout<<9; for(int i=1;i