ann = input() bob = input() total = ann + bob sorted_total = sorted(total) print("".join(sorted_total))