On 2 March 2008, Dmitry Medvedev was elected president while Putin became prime minister, as the constitution barred Putin from serving a third consecutive presidential term. Putin returned to the presidency following the 2012 presidential elections, and Medvedev was appointed prime minister. This four year joint leadership by the two was coined "tandemocracy" by foreign media.