#include<bits/stdc++.h>
using namespace std;

void main2();

int main(){
    ios::sync_with_stdio(false);
    std::cin.tie(nullptr);
    main2();
}

void main2(){
	string x, y;
	cin >> x >> y;
	if(x.size() - y.size() == 0 || x.size() - y.size() == 1){
		for(int i=0; i<x.size(); i++){
			cout << x[i];
			if(i == y.size()) break;
			cout << y[i];
		}
	} 
	else{
		cout << "?" << endl;
	}
}