The official statement of a problem is always the one in the PDF document. The HTML version of the statement is also given to help you, but may contain some content that is not well displayed. In case of doubt, always use the PDF.
Input
30 11 1971 6 4 1971 4 8 2001 29 2 2001 32 11 2005 30 11 2004 6 9 1901
Output
Dimarts Dimarts Dissabte Data Incorrecta Data Incorrecta Dimarts Divendres