import java.util.*;
public class LanQiao1 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String[] arr = new String[28];
for (int i = 0; i < arr.length;i ++){
System.out.println("请输入第" + (i+1) + "个字符");
arr[i] = in.next();
}
Arrays.sort(arr);
for (int i = 0;i < arr.length;i ++){
System.out.print(arr[i]);
}
}
}