The Lithuanian head of state is the president, directly elected for a five-year term and serving a maximum of two terms. The president oversees foreign affairs and national security, and is the commander-in-chief of the military. The president also appoints the prime minister and, on the latter's nomination, the rest of the cabinet, as well as a number of other top civil servants and the judges for all courts. The current Lithuanian head of state, Gitanas Nausėda was elected on 26 May 2019 by unanimously winning in all municipalities of Lithuania.