var
text,sym:string;
i:integer;
begin
readln(text);
readln(sym);
for i:=1 to length(text) do
if text[i] = sym then text[i]:=text[i]+sym;
writeln(text);
end.
var
text,sym:string;
i:integer;
begin
readln(text);
readln(sym);
for i:=1 to length(text) do
if text[i] = sym then text[i]:=text[i]+sym;
writeln(text);
end.