Easter Sundays

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 DD and the month MM of the Easter Sunday of every given year YY.

Below, := indicates assignment, div indicates integer division, and mod indicates the remainder of the integer division. To solve this problem, use the Gauss method:

Input

Input consists of several natural numbers between 1800 and 9999.

Output

Print the day and the month of the Easter Sunday of each year.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T10:26:14.665Z

© Jutge.org, 2006–2026.
https://jutge.org