#include <bits/stdc++.h>
using namespace std;
int arr[1234];
vector<int> vec;
int main() {
  std::ios::sync_with_stdio(false);
  string s, t, st;
  cin >> s >> t;
  st = s;
  int n = s.length();
  int m = t.length();
  int i, j;
  for (i = 0; i < s.length(); i++) {
    arr[s[i]]++;
    if (s[i] == '?') {
      vec.push_back(i);
    }
  }
  i = 0;
  j = 0;
  int k = 0;
  while (i < n) {
    if (arr[t[j]] != 0) {
      arr[t[j]]--;
    } else if (arr['?'] != 0) {
      s[vec[k]] = t[j];
      k++;
      arr['?']--;
    } else {
      break;
    }
    j++;
    i++;
    if (j == m) j = 0;
  }
  cout << s << endl;
  return 0;
  for (j = 0; j < 256; j++) {
    while (arr[j] > 0) {
      st[i] = char(j);
      arr[j]--;
      i++;
    }
  }
  cout << st << endl;
  return 0;
}
