should help solving contest9.map.