Seems that brute force is quick enough