#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, t;
  cin >> s >> t;
  vector<int> p;
  int a[27] = {0};
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '?') {
      p.push_back(i);
    } else {
      a[int(s[i]) - 96]++;
    }
  }
  if (p.size() == 0) {
    cout << s;
    return 0;
  }
  int i = 0, j = 0;
  while (j < p.size()) {
    if (i == t.size()) {
      i = 0;
    }
    if (a[int(t[i]) - 96] > 0) {
      a[int(t[i]) - 96]--;
    } else {
      s[p[j]] = t[i];
      j++;
    }
    i++;
  }
  cout << s << endl;
}
