Not sure about dumb but sometimes brute force is the way if the problem space is small