#include using namespace std; using ll=long long; #define rep(i,n) for(int i=0;i=0;i--) #define all(v) v.begin(),v.end() #define rall(v) v.rbegin(),v.rend() template bool chmax(T &a, T b){if (a < b){a = b;return true;} else return false;} template bool chmin(T &a, T b){if (a > b){a = b;return true;} else return false;} const int MOD=998244353; bool compare(string&s1,string&s2){ return(s1+s2>N; vectorS(N); for(int i=0;i>S[i]; } sort(S.begin(),S.end(),compare); string ans=""; for(int i=0;iten(L); ten[0]=1; for(int i=1;i