solved, but somewhat slow (36s) cause brute force