uva 11110 equidivisions
Graph + DFS fill