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() {
  string s1, s2, s3;
  cin >> s1 >> s2;
  sort(s1.begin(), s1.end());
  sort(s2.rbegin(), s2.rend());
  int z = s1.size();
  s3 = s1.substr(0, (z + 1) / 2);
  for (int i = 0, j = 1; j < z; j += 2, i++) {
    s3.insert(j, 1, s2[i]);
  }
  cout << s3;
}
