Input (grade 8): (For example, in 2010, both January 1 and December 31 fell on a Friday.)
Output (grade 8): (For example, in 2009, both January 1 and December 31 fell on a Thursday.)