#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include // C++ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //#include //#include //#include #define ll long long #define Sort(v) sort(all(v)) #define INF 1e9 #define LINF (1LL<<40) #define END return 0 #define pb push_back #define se second #define fi first #define pb push_back #define all(v) (v).begin(), (v).end() #define MP make_pair #define int long long #define rep(i,j,k) for(int i=(int)j;i<(int)k;i++) #define umap unordered_map #define re0 return 0 using namespace std; int day[12]={31,28,31,30,31,30,31,31,30,31,30,31}; int dx[]={0,1,0,-1}; int dy[]={1,0,-1,0}; //typedef pair P; const string SP = " "; const string TAB = "\t"; const long long MOD=1000000007LL; bool isupper(char c){if('A'<=c&&c<='Z')return 1;return 0;} bool islower(char c){if('a'<=c&&c<='z')return 1;return 0;} bool isnumber(char c){return ('0'<=c&&c<='9');} bool isalpha(char c){return (isupper(c)||islower(c));} bool is_kaibun(string s){string rs = s;reverse(all(rs));if(s == rs)return true;else return false;} template void printv(vector v, bool is_endl=true){ for(int i=0;i void printendl(vector v){ for(auto date:v)cout< void printvv(vector> v){ for(int i=0;i split(string s, char c){ if(s[s.size()-1]!=c)s+=c; vector v; int pos=0; rep(i,0,s.size()){ if(s[i]==c){ v.push_back(s.substr(pos,i-pos)); pos=i+1; } if(i==s.size()-1 && s.substr(pos,i-pos)!="")v.push_back(s.substr(pos,i-pos)); } return v; } map prime_factor(int n){ map ret; if(n==1){ ret[1]=1; return ret; } for(int i=2;i*i<=n;i++){ while(n%i==0){ ret[i]++; n/=i; } } if(n!=1)ret[n]=1; return ret; } signed main(){ int n; cin>>n; rep(goti,0,n){ int d; cin>>d; cout<<"9"; rep(j,0,d-1)cout<<0; cout<