Hong Kong Olympiad in Informatics [HKOI] 2003

Wrong Solution 7

This program outputs an extra line to the output file.