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 ProbD {
	public static void main(String[] args) {
		ProbD sol = new ProbD();
		sol.start();
	}

	StringBuffer printstr;
	String _readerstr;
	BufferedReader rdr;
	HashSet<Integer> debug_number_set;
	int[] debug_code;

	public void print(Object o){ print(o, 0); }
	public void print(Object o, int debug_number){
		if(debug_number_set.contains(debug_number)) System.out.print(o);
	}
	public void println() { print("\n", 0); }
	public void println(Object o) { println(o, 0); }
	public void println(Object o, int debug_number){ print(o+"\n", debug_number); }

	public void bufp(Object o){ printstr.append(o); }
	public void bufpl(Object o){ printstr.append(o).append('\n'); }
	public void bufpl() { printstr.append('\n'); }
	public void bufp(char[] c, int offset, int len){ printstr.append(c, offset, len); }
	public void bufpl(char[] c, int offset, int len){ printstr.append(c, offset, len).append('\n'); }
	
	public Integer readInt(){
		try{
			if(_readerstr==null) _readerstr = rdr.readLine();
		}
		catch(Exception e){ return null; }
		String[] s = _readerstr.split(" ", 2);
		if(s.length==1) _readerstr = null;
		else _readerstr = s[1];
		try{
			return Integer.parseInt(s[0]);
		}
		catch(Exception e){}
		return readInt();
	}
	
	public Long readLong(){
		try{
			if(_readerstr==null) _readerstr = rdr.readLine();
		}
		catch(Exception e){ return null; }
		String[] s = _readerstr.split(" ", 2);
		if(s.length==1) _readerstr = null;
		else _readerstr = s[1];
		try{
			return Long.parseLong(s[0]);
		}
		catch(Exception e){}
		return readLong();
	}
	
	public Double readDouble(){
		try{
			if(_readerstr==null) _readerstr = rdr.readLine();
		}
		catch(Exception e){ return null; }
		String[] s = _readerstr.split(" ", 2);
		if(s.length==1) _readerstr = null;
		else _readerstr = s[1];
		try{
			return Double.parseDouble(s[0]);
		}
		catch(Exception e){}
		return readDouble();
	}
	
	public String readStr(){
		try{
			if(_readerstr==null) _readerstr = rdr.readLine();
		}
		catch(Exception e){ return null; }
		String[] s = _readerstr.split(" ", 2);
		if(s.length==1) _readerstr = null;
		else _readerstr = s[1];
		return s[0];
	}
	
	public String readLine(){
		try{
			if(_readerstr==null) _readerstr = rdr.readLine();
		}
		catch(Exception e){ return null; }
		String ret = _readerstr;
		_readerstr = null;
		return ret;
	}
	
	public void initiate_the_entire_program(){
		printstr = new StringBuffer();
		_readerstr = null;
		try{
			rdr = new BufferedReader(new InputStreamReader(System.in));
		}
		catch(Exception e){ println(e); }
		debug_number_set = new HashSet();
		for(int i : debug_code) debug_number_set.add(i);
	}

	public void start(){
		debug_code = new int[] {0,1,2,3,4,5};
		initiate_the_entire_program();
		
		submit();
		
		System.out.println(printstr);
		System.out.flush();
	}
	
	public void submit(){
		char[] s = readLine().toCharArray();
		char[] t = readLine().toCharArray();
		bufpl(suitability(s, t));
	}
	
	int[] scount, ccount;
	
	public String suitability(char[] s, char[] t){
		scount = new int[27];
		ccount = new int[26];
		Arrays.fill(scount, 0);
		Arrays.fill(ccount, 0);
		for(char c : s){
			if(c=='?') scount[26] += 1;
			else scount[c-'a'] += 1;
		}
		for(char c : t) ccount[c-'a'] += 1;
		
//		for(int i=0;i<27;i++) print(scount[i]+" ");
//		println();
//		for(int i=0;i<26;i++) print(ccount[i]+" ");
//		println();
		
		int left = 0;
		int right = 10000000;
		int middle;
		while(right-left>1){
			middle = (right+left) / 2;
//			println(middle);
//			if(isSuitable(middle)) println("OK");
			if(isSuitable(middle)) left = middle;
			else right = middle;
		}
//		println(left);
		if(isSuitable(right)) left = right;
		
		for(int i=0;i<s.length;i++) if(s[i]=='?'){
			s[i] = 'a';
			for(int j=0;j<26;j++) if(scount[j]<ccount[j]*(long)left){
//				if(i==1) println("Ah: "+i+" "+j+" "+scount[j]+" "+ccount[j]+" "+left);
				scount[j] += 1;
				s[i] = (char)('a'+j);
				break;
			}
//			println("Hello: "+i+" "+s[i]);
		}
		return new String(s);
	}
	
	public boolean isSuitable(long k){
		boolean debug = false;
//		if(k==2) debug = true;
		long deficit = (long) 0;
		for(int i=0;i<26;i++) {
			long tmp = scount[i] - k * ccount[i];
			if(debug) println("Ho: "+i+" "+tmp);
			if(tmp<0) deficit += tmp;
		}
		if(debug) println("Hi: "+deficit+" "+scount[26]);
		if(deficit+scount[26]>=0) return true;
		else return false;
	}
}