first prime minister and subsequently first president