Var
g: string;
i: byte;
begin
readln(g);
i := 1;
while g[i] = ' ' do delete(g,i,1);
i := length(g);
while g[i] = ' ' do begin delete(g,i,1); i := i - 1 end;
i := 1;
while i <= length(g) do begin<br> if g[i] = ' ' then
if g[i-1] = '*' then begin
delete(g,i,1);
i := i - 1;
end
else begin
delete(g,i,1);
insert('_',g,i);
end;
inc(i);
end;
writeln(g);
end.