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

bccdb
 z
 dfdeed
 aab
 y
 abac

#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  char S[100009], P[100009];
  cin >> S;
  long N = strlen(S);
  sort(S, S + N);
  cin >> P;
  sort(P, P + N);
  long i = 0, K = N;
  N--;
  while (N > 0) {
    N -= 2;
    cout << S[i] << P[K - i - 1];
    i++;
  }
  if (K % 2) cout << S[i];
}
