Problem n-dam.