problem 19, counting sundays (and taking them back)