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 JAVA):

Solution:
import java.util.*;

/**
 * todo unsolved
 */
public class Problem825D {

  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    String s = in.next();
    String t = in.next();
    String x = solve(s, t);
    System.out.println(x);
  }

  private static String solve(String s, String t) {
    Map<Character, Integer> smap = mkMap(s);
    Map<Character, Integer> tmap = mkMap(t);
    int max = s.length() / t.length();
    int origq = smap.getOrDefault('?', 0);
    int[] qq = new int[max + 1];
    boolean[] suitable = new boolean[max + 1];

    Arrays.fill(qq, origq);
    Arrays.fill(suitable, true);

    for (Map.Entry<Character, Integer> entry : tmap.entrySet()) {
      char c = entry.getKey();
      int tn = entry.getValue();
      int sn = smap.getOrDefault(c, 0);

      for (int i = max; i >= 1; i--) {
        if (!suitable[i]) continue;
        if (sn >= tn * i) {
        } else if (qq[i] - ((tn * i) - sn) >= 0) {
          qq[i] -= ((tn * i) - sn);
        } else {
          suitable[i] = false;
        }
      }
    }

    for (int i = max; i >= 1; i--) {
      if (suitable[i]) {
        int q = origq;
        Map<Character, Integer> replaced = new HashMap<>();
        for (Map.Entry<Character, Integer> entry : tmap.entrySet()) {
          char c = entry.getKey();
          int tn = entry.getValue();

          int sn = smap.getOrDefault(c, 0);

          if (sn >= tn * i) {
          } else if (q - ((tn * i) - sn) >= 0) {
            // yes!
            Integer n = replaced.getOrDefault(c, 0);
            replaced.put(c, n + ((tn * i) - sn));
            q -= ((tn * i) - sn);
          }
        }

        Iterator<Character> it = stream(replaced);
        StringBuilder res = new StringBuilder();
        for (int j = 0; j < s.length(); j++) {
          char c = s.charAt(j);
          if (c == '?') {
            if (it.hasNext()) {
              res.append(it.next());
            } else {
              res.append('a'); // doesn't matter
            }
          } else {
            res.append(c);
          }
        }
        return res.toString();
      }
    }
    return origq > 0 ? s.replace('?', 'a') : s;
  }

  private static Map<Character, Integer> mkMap(String s) {
    Map<Character, Integer> smap = new HashMap<>();
    for (int i = 0; i < s.length(); i++) {
      int c = smap.getOrDefault(s.charAt(i), 0);
      smap.put(s.charAt(i), c + 1);
    }
    return smap;
  }

  private static Iterator<Character> stream(Map<Character, Integer> map) {
    final Iterator<Map.Entry<Character, Integer>> it = map.entrySet().iterator();
    return new Iterator<Character>() {
      Character c;
      int n;

      @Override
      public boolean hasNext() {
        return n > 0 || it.hasNext();
      }

      @Override
      public Character next() {
        if (c == null || n == 0) {
          Map.Entry<Character, Integer> entry = it.next();
          c = entry.getKey();
          n = entry.getValue();
        }
        n--;
        return c;
      }
    };
  }
}