Three hundred marbles were in a box, covered with locks. One marble rolled out, three locks broke. Five marbles rolled out, four locks broke. Twenty-seven marbles rolled out, eleven locks broke. Four hundred seventy-six marbles rolled out. How many locks broke?