solved #12 with brute force, runtime 24:17.34