Taking office as prime minister, Desai also took charge of the Ministry of Finance. He sought to carefully distribute important posts to satisfy Janata's different constituents and the most powerful party leaders who were rivals for his own position of leadership. Both Charan Singh and Jagjivan Ram were accorded the title of deputy prime minister. Charan Singh became the Minister of Home Affairs, the second-most important position in the Council of Ministers, while Jagjivan Ram took charge of the Ministry of Defence. BJS leaders Atal Bihari Vajpayee and Lal Krishna Advani were respectively given charge of the Ministry of External Affairs and the Ministry of Information and Broadcasting. Raj Narain was appointed Minister of Health, Madhu Dandavate was to head the Ministry of Railways and trade unionist George Fernandes was made the Minister of Communications. Jurist Shanti Bhushan was appointed Minister of Law and Justice. Congress (O) veteran and Janata candidate Neelam Sanjiva Reddy won the presidential election to become the 6th President of India on 25 July 1977.