Finished 25. The naive way was also the fastest way.