Input (grade 12): In common years January starts on the same day of the week as October, but no other month starts on the same day of the week as October in leap years.
Output (grade 8): October begins on the same day of week as previous January, except in leap years.