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.io.*;
import java.util.*;

/**
 * Created by Katushka on 11.03.2020.
 */
public class B {
    static int[] readArray(int size, InputReader in) {
        int[] a = new int[size];
        for (int i = 0; i < size; i++) {
            a[i] = in.nextInt();
        }
        return a;
    }


    static long[] readLongArray(int size, InputReader in) {
        long[] a = new long[size];
        for (int i = 0; i < size; i++) {
            a[i] = in.nextLong();
        }
        return a;
    }

    public static void main(String[] args) throws FileNotFoundException {
        InputReader in = new InputReader(System.in);
        PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));

        String s = in.nextString();
        String t = in.nextString();
        Map<Character, Integer> sOccs = calcOccurences(s);
        Map<Character, Integer> tOccs = calcOccurences(t);
        int questions = sOccs.getOrDefault('?', 0);
        sOccs.remove('?');

        int k = Integer.MAX_VALUE;
        for (Character ch : tOccs.keySet()) {
            if (!sOccs.containsKey(ch)) {
                k = 0;
                break;
            } else {
                int occs = sOccs.get(ch);
                k = Math.min(k, occs / tOccs.get(ch));
            }
        }

        if (k > 0) {
            for (Character ch : tOccs.keySet()) {
                int occs = sOccs.get(ch);
                int newOccs = occs - tOccs.get(ch) * k;
                if (newOccs == 0) {
                    sOccs.remove(ch);
                } else {
                    sOccs.put(ch, newOccs);
                }
            }
        }

        int[] newChars = new int[26];
        while (questions > 0) {
            int newK = Math.max(questions / t.length(), 1);
            for (Character ch : tOccs.keySet()) {
                if (!sOccs.containsKey(ch)) {
                    questions -= newK * tOccs.get(ch);
                } else {
                    int occs = sOccs.get(ch);
                    if (occs <= newK * tOccs.get(ch)) {
                        questions -= (newK * tOccs.get(ch) - occs);
                    }
                }
            }
            if (questions >= 0) {
                for (Character ch : tOccs.keySet()) {
                    if (!sOccs.containsKey(ch)) {
                        newChars[ch - 'a'] += newK * tOccs.get(ch);
                    } else {
                        int occs = sOccs.get(ch);
                        if (occs <= newK * tOccs.get(ch)) {
                            newChars[ch - 'a'] += newK * tOccs.get(ch) - occs;
                            sOccs.remove(ch);
                        } else {
                            sOccs.put(ch, occs - newK * tOccs.get(ch));
                        }
                    }
                }
                k += newK;
            }
        }
        int ii = 0;
        while (ii < 26 && newChars[ii] == 0) {
            ii++;
        }
        StringBuilder str = new StringBuilder();
        for (int i = 0; i < s.length(); i++) {
            char ch = s.charAt(i);
            if (ch == '?') {
                if (ii < 26) {
                    str.append((char) ('a' + ii));
                    newChars[ii]--;
                    while (ii < 26 && newChars[ii] == 0) {
                        ii++;
                    }
                } else {
                    str.append('z');
                }
            } else {
                str.append(ch);
            }
        }
        out.println(str.toString());


        out.close();
    }

    private static Map<Character, Integer> calcOccurences(String s) {
        HashMap<Character, Integer> result = new HashMap<>();
        for (int i = 0; i < s.length(); i++) {
            if (!result.containsKey(s.charAt(i))) {
                result.put(s.charAt(i), 1);
            } else {
                result.put(s.charAt(i), result.get(s.charAt(i)) + 1);
            }
        }
        return result;
    }


    private static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public String nextString() {
            try {
                return reader.readLine();
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

        public long nextLong() {
            return Long.parseLong(next());
        }

        public char nextChar() {
            return next().charAt(0);
        }
    }
}