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.PrintStream;
import java.util.Arrays;
import java.util.Scanner;

/**
 * @since 2017/7/22
 */
public class Main {

    private static Scanner reader = new Scanner(System.in);
    private static PrintStream writer = System.out;

    private void a() {
        int n = reader.nextInt();
        reader.nextLine();
        char[] s = reader.nextLine().toCharArray();

        int last = -1;
        for (int i = 0; i < s.length; i++){
            if (s[i] == '0') {
                writer.print(i-last-1);
                last = i;
            }
        }
        writer.println(s.length - last - 1);
    }

    private void b() {
        char[][] b = new char[10][];
        for (int i = 0; i < 10; i++) {
            b[i] = reader.nextLine().toCharArray();
        }

        for (int i = 0; i < 10; i++) {
            for (int j = 0; j < 10; j++) {
                if (b[i][j] == '.') {
                    b[i][j] = 'X';
                    if (check(b, i, j)) {
                        writer.println("YES");
                        return;
                    }
                    b[i][j] = '.';
                }
            }
        }

        writer.println("NO");
    }

    private boolean check(char[][] b, int x, int y) {
        for (int i = 0; i < 10; i++) {
            for (int j = 0; j+5-1 < 10; j++) {
                boolean ok = true;
                for (int k = 0; ok && k < 5; k++) {
                    if (b[i][j+k] != 'X') {
                        ok = false;
                    }
                }
                if (ok) return true;
            }
        }

        for (int j = 0; j < 10; j++) {
            for (int i = 0; i+5-1 < 10; i++) {
                boolean ok = true;
                for (int k = 0; ok && k < 5; k++) {
                    if (b[i+k][j] != 'X') {
                        ok = false;
                    }
                }
                if (ok) return true;
            }
        }

        for (int i = 0; i+5-1 < 10; i++) {
            for (int j = 0; j+5-1 < 10; j++) {
                boolean ok = true;
                for (int k = 0; ok && k < 5; k++) {
                    if (b[i+k][j+k] != 'X') {
                        ok = false;
                    }
                }
                if (ok) return true;
            }
        }

        for (int i = 4; i < 10; i++) {
            for (int j = 0; j+5-1 < 10; j++) {
                boolean ok = true;
                for (int k = 0; ok && k < 5; k++) {
                    if (b[i-k][j+k] != 'X') {
                        ok = false;
                    }
                }
                if (ok) return true;
            }
        }

        return false;
    }

    private void c() {
        int n = reader.nextInt();
        n++;
        int k = reader.nextInt();
        int[] a = new int[n];
        a[0] = 0;
        for (int i = 1; i < n; i++) {
            a[i] = reader.nextInt();
        }
        Arrays.sort(a);

        int ans = 0;
        for (int i = n-1; i > 0; i--) {
            if (2*k >= a[i]) break;

            if (a[i-1]*2 >= a[i]) {
                continue;
            } else {
                int t = a[i];
                while (a[i-1]*2 < t && 2*k < t) {
                    ++ans;
                    t = (t+1) / 2;
                }
            }
        }

        writer.println(ans);
    }

    private int guess(int[] s, int[] t, int q, int u) {
        if (u <= 0) return 0;

        int hb = -1;
        int tu = u;
        while (tu > 0) {
            tu >>= 1;
            ++hb;
        }

        int b = 0;
        for (int i = hb; i >= 0; --i) {
            int x = b + (0x1 << i);

            int c = 0;
            for (int j = 0; j < 26; j++) {
                if (s[j] < t[j]*x) c += t[j]*x - s[j];
            }
            if (c <= q) b = x;
        }
        return b;
    }

    private void d() {
        char[] s = reader.nextLine().toCharArray();
        char[] t = reader.nextLine().toCharArray();

        int[] ct = new int[26];
        int[] cs = new int[26];

        int cq = 0;
        for (char c : s) {
            if (c == '?') ++cq;
            else ++cs[(int)(c-'a')];
        }

        for (char c : t) {
            ++ct[(int)(c - 'a')];
        }

        int k = guess(cs, ct, cq, s.length / t.length);

        char[] r = new char[s.length];
        int top = 0;
        for (int i = 0; i < 26; i++) {
            int d = k*ct[i] - cs[i];
            for (int j = 0; j < d; j++) {
                r[top++] = (char)(i + 'a');
            }
        }

        while (top < cq) r[top++] = 'a';

        for (int i = 0; i < s.length; i++) {
            if (s[i] == '?') {
                if (top > 0) s[i] = r[--top];
                else s[i] = 'a';
            }
        }

        System.out.println(s);
    }

    public static void main(String[] args) {
        new Main().d();
    }

}