#include using namespace std; using Int=long long; using Real=long double; templateinline bool chmin(T&A,S B){return(A>B?A=B,1:0);} templateinline bool chmax(T&A,S B){return(A>N; REP1(i,9) { cin>>c; while(c--)ans=(char)('0'+i)+ans; } cout<>T; while(T--)sol(); }