solve by brute force, good