#include <bits/stdc++.h>
using namespace std;
long long S[30];
long long T[30];
int main() {
  ios_base::sync_with_stdio(0);
  vector<long long> V;
  string s, t;
  long long c = 0;
  cin >> s >> t;
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] == '?')
      c++;
    else
      S[s[i] - 'a']++;
  }
  for (long long i = 0; i < t.size(); i++) {
    T[t[i] - 'a']++;
  }
  long long k = 0, j = 0;
  while (true) {
    long long a = 0;
    long long ok = 0;
    while (a < T[k]) {
      if (S[k] > 0)
        S[k]--;
      else if (c > 0) {
        c--;
        while (s[j] != '?') j++;
        s[j] = k + 'a';
      } else {
        cout << s;
        return 0;
      }
      a++;
    }
    k++;
    k = k % 27;
  }
}
