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.PriorityQueue;
import java.util.Comparator;
import java.util.ArrayList;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.PrintWriter;

public class Main
{
        
	static class Reader
	{
		final private int BUFFER_SIZE = 1 << 16;
		private DataInputStream din;
		private byte[] buffer;
		private int bufferPointer, bytesRead;

		public Reader()
		{
			din = new DataInputStream(System.in);
			buffer = new byte[BUFFER_SIZE];
			bufferPointer = bytesRead = 0;
		}

		public Reader(String file_name) throws IOException
		{
			din = new DataInputStream(new FileInputStream(file_name));
			buffer = new byte[BUFFER_SIZE];
			bufferPointer = bytesRead = 0;
		}

		public String readLine() throws IOException
		{
			byte[] buf = new byte[2000011]; // line length
			int cnt = 0, c;
			while ((c = read()) != -1)
			{
				if (c == '\n')
					break;
				buf[cnt++] = (byte) c;
			}
			return new String(buf, 0, cnt);
		}

		public int nextInt() throws IOException
		{
			int ret = 0;
			byte c = read();
			while (c <= ' ')
				c = read();
			boolean neg = (c == '-');
			if (neg)
				c = read();
			do
			{
				ret = ret * 10 + c - '0';
			} while ((c = read()) >= '0' && c <= '9');

			if (neg)
				return -ret;
			return ret;
		}

		public long nextLong() throws IOException
		{
			long ret = 0;
			byte c = read();
			while (c <= ' ')
				c = read();
			boolean neg = (c == '-');
			if (neg)
				c = read();
			do {
				ret = ret * 10 + c - '0';
			}
			while ((c = read()) >= '0' && c <= '9');
			if (neg)
				return -ret;
			return ret;
		}

		public double nextDouble() throws IOException
		{
			double ret = 0, div = 1;
			byte c = read();
			while (c <= ' ')
				c = read();
			boolean neg = (c == '-');
			if (neg)
				c = read();

			do {
				ret = ret * 10 + c - '0';
			}
			while ((c = read()) >= '0' && c <= '9');

			if (c == '.')
			{
				while ((c = read()) >= '0' && c <= '9')
				{
					ret += (c - '0') / (div *= 10);
				}
			}

			if (neg)
				return -ret;
			return ret;
		}

		private void fillBuffer() throws IOException
		{
			bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
			if (bytesRead == -1)
				buffer[0] = -1;
		}

		private byte read() throws IOException
		{
			if (bufferPointer == bytesRead)
				fillBuffer();
			return buffer[bufferPointer++];
		}

		public void close() throws IOException
		{
			if (din == null)
				return;
			din.close();
		}
	}
       
        static class pair{
         int c,fr;
         pair(int a,int b){
          c=a;fr=b;
         }
         public String toString(){
          String s=c+"-"+fr;
          return s;
         }
        }
        
	public static void main(String[] args) throws IOException
	{
		Reader s=new Reader();PrintWriter pw=new PrintWriter(System.out);
                String si=s.readLine().trim(),ti=s.readLine().trim();
                int xs=si.length(),xt=ti.length(),i,j;
                ArrayList<Integer> al=new ArrayList<>();
                int fs[]=new int[26],ft[]=new int[26];
                for(i=0;i<xs;i++){
                 if(si.charAt(i)=='?')al.add(i);
                 else fs[si.charAt(i)-'a']++;
                }
                
                for(i=0;i<xt;i++)ft[ti.charAt(i)-'a']++;
                ArrayList<pair> al1=new ArrayList<>();
                for(i=0;i<26;i++){
                 if(ft[i]!=0)al1.add(new pair(i,0));
                }
                
                int x=al.size(),x1=al1.size(),y=x;
                 for(i=0;;i++){
                  if(y==0)break;
                  int I=al1.get(i%x1).c;
                  if(fs[I]>=ft[I])fs[I]-=ft[I];
                  else{
                   int add=(int)Math.min(ft[I]-fs[I],y);
                   al1.set(i%x1,new pair(I,al1.get(i%x1).fr+add));fs[I]=0;
                   y-=(add);
                  }
                  //System.out.println(al1);
                 }
          
                j=0;StringBuilder sb=new StringBuilder(si);
                for(i=0;i<x;i++){
                 while(al1.get(j).fr==0)j++;
                 char c=(char)('a'+al1.get(j).c);
                 al1.set(j,new pair(al1.get(j).c,al1.get(j).fr-1));
                 sb.setCharAt(al.get(i),c);
                }
                pw.write(sb.toString());
                pw.flush();pw.close();
	}
    
}
/*
????????????????????
xwkxsxlrre
*/