35 prisoners flee after beating guards