Started on USACO beads with naive exhaustive search. Is tedious. Will find more clever way.