Problem: You are given two strings s and t consisting of small Latin letters, string s can also contain '?' characters. 

Suitability of string s is calculated by following metric:

Any two letters can be swapped positions, these operations can be performed arbitrary number of times over any pair of positions. Among all resulting strings s, you choose the one with the largest number of non-intersecting occurrences of string t. Suitability is this number of occurrences.

You should replace all '?' characters with small Latin letters in such a way that the suitability of string s is maximal.

Input

The first line contains string s (1 ≤ |s| ≤ 106).

The second line contains string t (1 ≤ |t| ≤ 106).

Output

Print string s with '?' replaced with small Latin letters in such a way that suitability of that string is maximal.

If there are multiple strings with maximal suitability then print any of them.

Examples

Input

?aa?
ab


Output

baab


Input

??b?
za


Output

azbz


Input

abcd
abacaba


Output

abcd

Note

In the first example string "baab" can be transformed to "abab" with swaps, this one has suitability of 2. That means that string "baab" also has suitability of 2.

In the second example maximal suitability you can achieve is 1 and there are several dozens of such strings, "azbz" is just one of them.

In the third example there are no '?' characters and the suitability of the string is 0.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
struct iip : public std::pair<int, int> {
  char ch;
};
int n, m, k = 26, cnt = 0;
char s[1100000], t[1100000];
iip a[26];
bool cmp(const iip &a, const iip &b) {
  if (a.second == b.second) {
    return a.first < b.first;
  } else if (a.second == 0)
    return true;
  else if (b.second == 0)
    return false;
  else
    return a.first / a.second < b.first / b.second;
}
int F(int idx, int ne, int num) {
  if (idx == k) return cnt / ne;
  int val = 0, next = 0, i;
  for (i = idx;
       i < k && a[i].first / a[i].second <= a[idx].first / a[idx].second; i++) {
    val += a[i].second - (a[i].first % a[i].second);
    next += a[i].second;
  }
  int dif = (a[idx].first / a[idx].second + 1) - num;
  if (ne * dif + val <= cnt) {
    cnt -= ne * dif + val;
    return dif + F(i, ne + next, dif + num);
  } else
    return (ne != 0) ? cnt / ne : 0;
}
int main() {
  scanf("%s%s", s, t);
  n = strlen(s);
  m = strlen(t);
  for (int i = 0; i < n; i++) {
    if (s[i] == '?')
      cnt++;
    else
      a[s[i] - 'a'].first++;
  }
  for (int i = 0; i < m; i++) {
    a[t[i] - 'a'].second++;
  }
  for (int i = 0; i < k; i++) a[i].ch = i + 'a';
  std::sort(a, a + k, cmp);
  int st = 0;
  while (st < k && a[st].second == 0) st++;
  int val = F(st, 0, 0), i = st;
  for (int j = 0; j < n; j++) {
    while (i < k && a[i].first / a[i].second >= val) i++;
    if (s[j] != '?') continue;
    if (i < k)
      s[j] = a[i].ch;
    else
      s[j] = 'a';
    a[i].first++;
  }
  printf("%s\n", s);
  return 0;
}