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.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Random;
import java.util.Scanner;


public class Main {

	static class Solver {
		public void solve() {
			Scanner in = new Scanner(System.in);
		
			String A = in.nextLine();
			String B = in.nextLine();
			
			long cntA[] = new long[26];
			long cntB[] = new long[26];
			
			long have = 0;
			for (char c:A.toCharArray()) {
				if (c == '?') {
					have++;
					continue;
				}
				cntA[c-'a']++;
			}
			for (char c:B.toCharArray()) {
				cntB[c-'a']++;
			}
			
			int low = 0,high=1000100;
			
			while (low<=high) {
				int mid = (low+high)/2;
				if (getRequired(cntA,cntB,mid) <= have) {
					low = mid + 1;
				} else {
					high = mid - 1;
				}
			}
			//System.out.println(high);
			int suit = high;
			
			int req[] = new int[26];
			for (int i=0;i<26;++i) {
				req[i] = Math.max(0 , suit * (int)cntB[i] - (int)cntA[i]);
			}
			
			StringBuilder ans = new StringBuilder(A);
			for (int i=0;i<A.length();++i) {
				if (A.charAt(i) == '?') {
					ans.setCharAt(i, calcNext(req));
				}
			}
			
			System.out.println(ans.toString());
		}
		private static int nextInd = 0;
		private char calcNext(int []req) {
			while (nextInd<26 && req[nextInd]==0) {
				nextInd++;
			}
			if (nextInd == 26) {
				return 'a';
			}
			req[nextInd]--;
			return (char)('a'+nextInd);
		}
		
		private long getRequired(long[] cntA, long[] cntB, int mul) {
			long req = 0;
			for (int i=0;i<26;++i) {
				req += Math.max(0, cntB[i] * mul - cntA[i]);
			}
			return req;
		}
		
		
	}
	
	public static void main(String []args) {
		new Solver().solve();
	}
}