Who was the leader of Cuba before Batista?

Batista served two different terms as president of Cuba. First from 1940 to 1944, he was preceded by Frederico Laredo Bru. His second term was from 1952 to 1959 and he ousted Carlos Prios Socarras.