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.IOException;
import java.io.InputStream;
import java.util.NoSuchElementException;
 
public class Main {
	private static FastScanner sc = new FastScanner();
	
	public static void main(String[] args) {
		char[] s = sc.next().toCharArray();
		char[] t = sc.next().toCharArray();
		
		int[] schar = new int[26];
		int sq = 0;
		int[] tchar = new int[26];
		
		for(int i=0; i<s.length; i++) {
			if(s[i] == '?') {
				sq++;
			} else {
				schar[s[i] - 'a']++;
			}
		}
		
		for(int i=0; i<t.length; i++) {
			tchar[t[i] - 'a']++;
		}
		
		int l = 0;
		int r = s.length / t.length;
		int m = (l + r) / 2;
		while(l < r) {
			int needq = 0;
			for(int i=0; i<26; i++) {
				if(schar[i] < tchar[i] * m) {
					needq += tchar[i] * m - schar[i];
				}
			}
			
			if(sq >= needq) {
				needq = 0;
				for(int i=0; i<26; i++) {
					if(schar[i] < tchar[i] * (m+1)) {
						needq += tchar[i] * (m+1) - schar[i];
					}
				}
				
				if(sq < needq) {
					break;
				} else {
					l = m+1;
				}
			} else {
				r = m-1;
			}
			
			m = (l + r) / 2;
		}
		
		
		
//		System.out.println(m);
		
		int[] needchar = new int[26];
		for(int i=0; i<26; i++) {
			if(schar[i] < tchar[i] * m) {
				needchar[i] = tchar[i] * m - schar[i];
			}
		}
		
		int pos = 0;
		for(int i=0; i<s.length; i++) {
			if(s[i] == '?') {
				while(true) {
					if(pos == 26) {
						s[i] = 'a';
						break;
					} else if(needchar[pos] != 0) {
						s[i] = (char)('a' + pos);
						needchar[pos]--;
						break;
					} else {
						pos++;
					}
				}
			}
		}
		
		System.out.println(s);
	}
	
	static class FastScanner {
        private final InputStream in = System.in;
        private final byte[] buffer = new byte[1024];
        private int ptr = 0;
        private int buflen = 0;
        private boolean hasNextByte() {
            if(ptr < buflen) {
                return true;
            } else {
                ptr = 0;
                try {
                    buflen = in.read(buffer);
                } catch(IOException e) {
                    e.printStackTrace();
                }
                if(buflen <= 0) {
                    return false;
                }
            }
            return true;
        }
        private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
        private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
        private void skipUnprintable() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;}
        public boolean hasNext() { skipUnprintable(); return hasNextByte();}
        public String next() {
            if (!hasNext()) throw new NoSuchElementException();
            StringBuilder sb = new StringBuilder();
            int b = readByte();
            while(isPrintableChar(b)) {
                sb.appendCodePoint(b);
                b = readByte();
            }
            return sb.toString();
        }
        public long nextLong() {
            return Long.parseLong(next());
        }
        public int nextInt(){
            return Integer.parseInt(next());
        }
        public double nextDouble(){
            return Double.parseDouble(next());
        }
    }
}