then he resigned as a prime minister