Contest Webpage --------------- Every time we run a contest, we make a copy of the previous contest web page and update it with the new date, new problems, etc. We're getting tired of doing this by hand, so we want you to write a programme that generates the webpages automatically. Input ----- The input will consist of several instances. The first line of input will be a positive integer N giving the number of web pages to generate. Then, each of the N instances will provide three lines of input, as follows: The first line contains 3 integers: the year, the month (between 1 and 12) and the day of the month (between 1 and 31). The second line contains a positive integer M (between 1 and 26), the number of problems in the contest. The third contains a list of filenames. Each filename will end either in ".txt" or ".html". Output ------ See the Sample output below. Note the following details: - days and months are printed as two-digit numbers (with a leading 0) in pathnames. The day does not get a leading 0 in the title at the top of the page. - The words displyed for the links to problems are always "Problem A", "Problem B", etc., regardless of the filenames. There should be one blank line between outputs for different instances. Sample Input ------------ 2 2008 6 13 3 A.txt B.txt C.html 2008 12 1 4 Easy.txt Medium.html Hard.txt Impossible.html Sample Output ------------- York Programming Contest

York Programming Contest: June 13, 2008

York Programming Contest

York Programming Contest: December 1, 2008