Easter Sunday is a mobile holiday corresponding to the first Sunday after the first full moon of the spring. Write a program to compute the day and the month of the Easter Sunday of every given year .
Below, := indicates assignment, div
indicates integer division, and mod indicates the remainder
of the integer division. To solve this problem, use the Gauss
method:
Compute
If , then and .
Otherwise, if and , then and .
Otherwise, if and and , then and .
Otherwise, and .
Input consists of several natural numbers between 1800 and 9999.
Print the day and the month of the Easter Sunday of each year.
Input
2006 1999
Output
16/4 4/4