final MutableString line = new MutableString();
final FastBufferedReader reader = new FastBufferedReader( new InputStreamReader( System.in ) );
int l, start;
while( reader.readLine( line ) != null ) {
if ( line.charAt( 0 ) == '#' ) continue;
matcher.reset( line );
l = 0;
start = 0;
while( matcher.find() && l <= h ) {
printStream[ l ].println( line.subSequence( start, matcher.start() ) );