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.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.PrintStream;
import java.util.HashMap;
import java.util.Map;
import java.util.StringTokenizer;

/*
 public class _ER_25_D {

 }

 */

public class _ER_25_D
{
	public void solve() throws FileNotFoundException
	{
		InputStream inputStream = System.in;

		InputHelper inputHelper = new InputHelper(inputStream);

		PrintStream out = System.out;

		// actual solution
		String s = inputHelper.read();
		String t = inputHelper.read();

		long ns = s.length();
		long nt = t.length();

		long[] hs = new long[26];
		long[] ht = new long[26];

		long qm = 0;

		for (int i = 0; i < ns; i++)
		{
			if (s.charAt(i) == '?')
			{
				qm++;
				continue;
			}

			hs[s.charAt(i) - 'a']++;
		}

		for (int i = 0; i < nt; i++)
		{
			ht[t.charAt(i) - 'a']++;
		}

		long lo = 0;
		long hi = ns;

		long su = 0;
		while (lo <= hi)
		{
			long mid = (lo + hi) / 2;

			if (isposs(hs, ht, qm, mid))
			{
				su = Math.max(su, mid);
				lo = mid + 1;
			}
			else
			{
				hi = mid - 1;
			}
		}

		long[] tba = new long[26];

		for (int i = 0; i < 26; i++)
		{
			if (su * ht[i] > hs[i])
			{
				tba[i] = su * ht[i] - hs[i];
			}
		}

		int st = 0;
		StringBuilder ans = new StringBuilder(s);

		for (int i = 0; i < ans.length(); i++)
		{
			if (ans.charAt(i) == '?')
			{
				while (st < 26 && tba[st] == 0)
				{
					st++;
				}

				if (st < 26)
				{
					ans.setCharAt(i, (char) (st + 'a'));
					tba[st]--;
				}
				else
				{
					ans.setCharAt(i, 'a');
				}
			}
		}

		System.out.println(ans.toString());
		// end here
	}

	boolean isposs(long[] hs, long[] ht, long qm, long su)
	{
		long rqm = qm;
		for (int i = 0; i < 26; i++)
		{
			long rqc = ht[i] * su - hs[i];

			if (rqc > 0)
			{
				rqm -= rqc;

				if (rqm < 0)
				{
					return false;
				}
			}
		}

		return true;
	}

	public static void main(String[] args) throws FileNotFoundException
	{
		(new _ER_25_D()).solve();
	}

	class InputHelper
	{
		StringTokenizer tokenizer = null;
		private BufferedReader bufferedReader;

		public InputHelper(InputStream inputStream)
		{
			InputStreamReader inputStreamReader = new InputStreamReader(
					inputStream);
			bufferedReader = new BufferedReader(inputStreamReader, 16384);
		}

		public String read()
		{
			while (tokenizer == null || !tokenizer.hasMoreTokens())
			{
				try
				{
					String line = bufferedReader.readLine();
					if (line == null)
					{
						return null;
					}
					tokenizer = new StringTokenizer(line);
				}
				catch (IOException e)
				{
					e.printStackTrace();
				}
			}

			return tokenizer.nextToken();
		}

		public Integer readInteger()
		{
			return Integer.parseInt(read());
		}

		public Long readLong()
		{
			return Long.parseLong(read());
		}
	}
}