Determining the day of the week by date

PHP Easy date

Task «Determining the day of the week by date»

Write a program that takes a date in the format 'YYYY-MM-DD' and determines the day of the week for that date. Output the name of the day of the week in Russian (понедельник, вторник, среда, четверг, пятница, суббота, воскресенье). It is guaranteed that the entered date exists and is within the range from 1900-01-01 to 2100-01-01.

Input Format

One line containing a date in the format YYYY-MM-DD.

Output Format

One line — the name of the day of the week in Russian.

Examples

Example 1

INPUT
3 3 1 2 3 4 5 6 7 8 9
OUTPUT
3 2 1 6 5 4 9 8 7

Example 2

INPUT
1 10
OUTPUT
17
main.php