def dayname(year, month, day):
legal_date(year, month, day)<EOL>yearday = (month - <NUM_LIT:1>) * <NUM_LIT> + day<EOL>if isleap(year + YEAR_EPOCH - <NUM_LIT:1>):<EOL><INDENT>dname = data.day_names_leap[yearday - <NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>dname = data.day_names[yearday - <NUM_LIT:1>]<EOL><DEDENT>return MONTHS[month - <NUM_LIT:1>], dname<EOL>
Give the name of the month and day for a given date.

Returns:
    tuple month_name, day_name