#include<iostream>
#include<string>
#include<algorithm>
#include<cctype>
using namespace std;
bool isValid(const string& s) {
    for (char c : s) {
        if (!isaplha(c)) return false;
    }
    return true;
}
int main() {
    string word1, word2;
    if (!(cin >> word1 >> word2)) {
        cout << "Invalid input" << endl;
        return 1;
    }
    string merged ="";
    int i = 0, j = 0;
    while (i < word1.length() && j < word2.length()) {
        merged += word1[i++];
        merged +=word2[j++];
    }
    while(i <word1.length()) {
        merged +=word1[i++];
    }
    while(i <word2.length()) {
        merged +=word2[j++];
    }
    cout << merged << endl;
    return 0;
}