Very brute-force approach for 245 (runs in ~1h...).