#K84972. Day of Week Conversion

    ID: 36538 Type: Default 1000ms 256MiB

Day of Week Conversion

Day of Week Conversion

Given a list of dates in YYYY-MM-DD format, your task is to determine the day of the week for each date and output a formatted string for each date. The output for a date should be of the form:


Date: YYYY-MM-DD is a DDDD


where DDDD is the full name of the day (e.g., Monday, Tuesday, ...).

If the input list is empty, no output should be produced.

inputFormat

The first line of input contains an integer n representing the number of dates. Each of the following n lines contains a date string in the format YYYY-MM-DD.

outputFormat

For each input date, output a line in the format:


Date: YYYY-MM-DD is a DDDD


where DDDD is the day of the week corresponding to the date. There should be no extra output.

## sample
3
2023-10-05
1999-12-31
2000-01-01
Date: 2023-10-05 is a Thursday

Date: 1999-12-31 is a Friday Date: 2000-01-01 is a Saturday

</p>