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.*;
import java.text.*;
public class T{
    static final long p = (long)163577857;
    static final int MAX = (int)1e5+1;
    static final double eps = 1e-9;
    static FastReader in;
    
    public static void main(String[] args){
        in = new FastReader();
        String s = n(), t = n();
        long[] a = new long[26], b = new long[26];
        int q = 0;
        for(int i = 0; i< s.length(); i++){
            if(s.charAt(i)=='?')q++;
            else a[s.charAt(i)-'a']++;
        }
        for(int i = 0; i< t.length(); i++)b[t.charAt(i)-'a']++;
        long lo = 0, hi = s.length();
        while(lo<=hi){
            long mid = (lo+hi)>>1;
            long count = q;
            for(int i = 0; i< 26; i++){
                count -= Math.max(0, b[i]*mid-a[i]);
            }
            if(count>=0)lo = mid+1;
            else hi = mid-1;
        }
        long sui = lo-1;
        long[] c = new long[26];
        for(int i = 0; i< 26; i++)c[i] = Math.max(b[i]*sui-a[i], 0);
        StringBuilder out = new StringBuilder("");
        for(int i = 0, j = 0; i< s.length(); i++){
            if(s.charAt(i)=='?'){
                while(j<25 && c[j]==0)j++;
                out.append((char)('a'+j));
                c[j]--;
            }else out.append(s.charAt(i));
        }
        pn(out.toString());
    }
    
    static void p(Object o){
        System.out.print(o);
    }
    
    static void pn(Object o){
        System.out.println(o);
    }
    
    static String n(){
        return in.next();
    }
    
    static String nln(){
        return in.nextLine();
    }
    
    static int ni(){
        return Integer.parseInt(in.next());
    }
    
    static long nl(){
        return Long.parseLong(in.next());
    }
    
    static double nd(){
        return Double.parseDouble(in.next());
    }
    
    static class FastReader{
        BufferedReader br;
        StringTokenizer st;
        public FastReader(){
            br = new BufferedReader(new InputStreamReader(System.in));
        }
        
        public FastReader(String s) throws Exception{
            br = new BufferedReader(new FileReader(s));
        }
 
        String next(){
            while (st == null || !st.hasMoreElements()){
                try{
                    st = new StringTokenizer(br.readLine());
                }catch (IOException  e){
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
 
        String nextLine(){
            String str = "";
            try{
                str = br.readLine();
            }catch (IOException e){
                e.printStackTrace();
            }
            return str;
        }
    }
}