#include using namespace std; int main(void){ int t; cin>>t; while(t--){ int n; cin>>n; if(n<=9){ for(int i=0;i