import java.util.*; class ConstructingNumber { public static void main(String[] args) { int t; Scanner sc=new Scanner(System.in); t=sc.nextInt(); String[] out=new String[t]; for(int i=0;i