This PDF is reconstructed from the original official HTML statement; it is not an original contest PDF. The original HTML is supplied unchanged as an attachment. Use standard input and standard output. Historical point weights were not recovered: QOJ assigns equal weight to each original input file, rounded to six decimals with an exact total of 25 points. Any valid optimal output is accepted by a semantic checker. An archived reference output contained clippings absent from its newspaper. It has been corrected using independently verified minimum-clipping dynamic programming; original inputs and the official output archive are preserved locally. Newspaper punctuation and line breaks remain forbidden inside clippings, as stated below.
