var
s:string;
BEGIN
while s<>'|' do
begin
readln(s);
if s<>'|' then writeln(s);
end;
END.
dmFyCnM6c3RyaW5nOwpCRUdJTgp3aGlsZSBzPD4nfCcgZG8KICAgICAgICBiZWdpbgogICAgICAgIHJlYWRsbihzKTsKICAgICAgICBpZiBzPD4nfCcgdGhlbiB3cml0ZWxuKHMpOwogICAgICAgIGVuZDsKRU5ELg==