var s:string;
i:integer;
begin
readln(s);
s:=s+;
for i:=1 to length(s)-1 do
if ((s=) and (s[i+1]=)) then delete (s,i,1);
write(s);
end.
i:integer;
begin
readln(s);
s:=s+;
for i:=1 to length(s)-1 do
if ((s=) and (s[i+1]=)) then delete (s,i,1);
write(s);
end.