for(i=-1;i<296;++i?print(k.match(b+i+b)?$+'\n'+$:$):k=$)$=readline(b='\\b')