The president of the Republic of Indonesia () is both the head of state and the head of government of the Republic of Indonesia. The president leads the executive branch of the Indonesian government and is the commander-in-chief of the Indonesian National Armed Forces. Since 2004, the president and vice president are directly elected to a five-year term, once renewable, allowing for a maximum of 10 years in office. Joko Widodo is the seventh and current president of Indonesia. He assumed office on 20 October 2014. History Sukarno era The Indonesian presidency was established during the formulation of the 1945 Constitution by the Investigating Committee for Preparatory Work for Independence (BPUPK). The office was first filled on 18 August 1945 when Sukarno was elected by acclamation by the Preparatory Committee for Indonesian Independence (PPKI) because according to the Transitional Provisions of the Constitution, "the President and the Vice President for the first time shall be elected by the PPKI." Also, the body responsible for the presidential elections, the People's Consultative Assembly (MPR), had not yet been formed. On 16 October 1945, Vice President Mohammad Hatta announced a vice-presidential decree which gave the Central National Committee of Indonesia (KNIP) legislative powers. On 11 November 1945, the KNIP made the decision to separate the role of Head of State from that of Head of Government. Although a new constitution had not been set up yet, Indonesia was now a de facto parliamentary democracy with the president as a ceremonial Head of State whose function was to ask the prime minister as the Head of the Government to form a new Cabinet. During the Indonesian National Revolution, both Sukarno and Hatta were captured by the Dutch in Yogyakarta on 18 December 1948. Sukarno then gave a mandate for Sjafruddin Prawiranegara to form an emergency government. This was done and the Emergency Government of the Republic of Indonesia (PDRI) was formed in Sumatra with Prawiranegara as its chairman. Prawiranegara handed back his mandate to Sukarno on 13 July 1949. On 17 December 1949, Sukarno was elected president of the Republic of the United States of Indonesia (RIS) and presidential mandate passed to Assaat. When it became clear that RIS was going to be replaced by a unitary state, Asaat stepped down from the presidency and Sukarno once again became president on 15 August 1950. Indonesia now adopted the constitution that had been intended for