using C=System.Console;class P{static void Main(){var s=C.ReadLine();int i=0;foreach(var c in C.In.ReadToEnd())C.Write(c==35?s[i++]:c);}}