Which republic was a semi-presidential representative democracy that emerged after a revolution and faced numerous problems?