#include <string>
#include <vector>
#include <algorithm>
using namespace std;
bool comp(string a, string b){
return a+b>b+a;
}
string solution(vector<int> numbers) {
string answer = "";
vector<string> num_v;
for(auto ele:numbers)
num_v.push_back(to_string(ele));
sort(num_v.begin(), num_v.end(), comp);
for(auto ele:num_v)
answer +=ele;
if(answer[0]=='0') answer = "0";
return answer;
}