bcdef
abbbc
 z
y
 reddit
abcdef
 abc
aaa
 y
z
 cbxz
aaaa

bccdb
 z
 dfdeed
 aab
 y
 abac

import java.io.*;
import java.lang.reflect.Array;
import java.util.*;
public class B {
    Scanner in;

    public static void main(String[] args) {
        new B().run();
    }

    public void run() {
        in = new Scanner(System.in);
        char[] o = in.next().toCharArray();
        Arrays.sort(o);
        char[] i = in.next().toCharArray();
        Arrays.sort(i);
        String s = "";
        int n = o.length;
        boolean o1 = true;
        int opa = 0;
        int iga = 1;
        while(s.length() < n){
            if(o1){
                s+=o[0+opa];
                opa++;
            } else {
                s+=i[i.length-iga];
                iga++;
            }
            o1 = !o1;
        }
        System.out.println(s);
    }
}