The Military Determines the Outcome of Mass Protests