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.*;
import java.io.*;
public class D {
    void solve(BufferedReader in) throws Exception {
        String s = in.readLine(), t = in.readLine();
        char[] out = new char[s.length()];
        int[] chars = new int[26];
        int[] sorig = new int[26];
        int[] chart = new int[26];
        int q = 0;
        for(int i = 0; i<s.length(); i++) {
            char c = s.charAt(i);
            if(c == '?') q++;
            else chars[c - 'a']++;
            out[i] = c;
        }
        for(int i = 0; i<26; i++) sorig[i] = chars[i];
        for(char c: t.toCharArray()) chart[c-'a']++;
        int[] count = new int[26];
        for(int i = 0; i<26; i++) {
            if(chart[i] == 0) count[i] = 100000000;
            else count[i] = chars[i]/chart[i];
        }
        while(q > 0) {
            LinkedList<Integer> min = min(count);
            int snd = snd(count);
            int fst = count[min.getFirst()];
            int diff = 0;
            for(int i : min) {
                diff += (fst + 1)*chart[i] - chars[i];
            }
            if(diff <= q) {
                for(int i : min) {
                    diff = (fst + 1)*chart[i] - chars[i];
                    count[i]++;
                    chars[i] += diff;
                    q -= diff;
                }
                int sum = 0;
                for(int i: min) sum += chart[i];
                int inc = Math.min(Math.max(0, snd - fst), q/sum);
                for(int i : min) {
                    count[i]+=inc;
                    chars[i] += inc*chart[i];
                    q -= inc*chart[i];
                }
            }
            else {
                break;
            }
        }
        for(int o = 0; o<out.length; o++) {
            char c = out[o];
            if(c == '?') {
                boolean ok = false;
                for(int i = 0; i<26; i++) {
                    if(chars[i] > sorig[i]) {
                        chars[i]--;
                        out[o] = (char) (i + 'a');
                        ok = true;
                        break;
                    }
                }
                if(!ok) {
                    out[o] = 'x';
                }
            }
        }
        System.out.println(new String(out));
    }
    int snd(int[] c) {
        int min = 100000000;
        for(int i: c) min = Math.min(min, i);
        int min2 = Integer.MAX_VALUE;
        for(int i: c) if(i != min) min2 = Math.min(min2, i);
        return min2;
    }
    LinkedList<Integer> min(int[] c) {
        int min = c[0];
        for(int i = 0; i<c.length; i++) min = Math.min(min, c[i]);
        LinkedList<Integer> out = new LinkedList<>();
        for(int i = 0; i<c.length; i++) {
            if(min == c[i]) out.add(i);
        }
        return out;
    }
    int toInt(String s) {return Integer.parseInt(s);}
    int[] toInts(String s) {
        String[] a = s.split(" ");
        int[] o = new int[a.length];
        for(int i = 0; i<a.length; i++) o[i] = toInt(a[i]);
        return o;
    }
    void e(Object o) {
        System.err.println(o);
    }
    public static void main(String[] args) throws Exception{
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        (new D()).solve(in);
    }
}