usaco; solve "Friday the Thirteenth" from Chapter 1, Section 1