Many Icelandic politicians, including the first prime minister Hannes Hafstein, former Prime Minister Davíð Oddsson, former President of Iceland, Ólafur Ragnar Grímsson and current president, Guðni Th. Jóhannesson all attended MR. Almost every Prime Minister of Iceland has been educated at the school apart from Halldór Ásgrímsson, Ólafur Jóhannesson, Sigurður Ingi Jóhannsson, Þorsteinn Pálsson and Katrín Jakobsdóttir. Geir H. Haarde, Davíð's successor as chairman of the Independence Party and former Prime Minister, also took over from him as chairman of student body, Skólafélagið ("inspector scholae"). In 1879 Hannes Hafstein was the school's first inspector scholae, and in 1940 his grandson Einar Ragnarsson Kvaran achieved the position. The former President of Iceland, Ólafur Ragnar Grímsson, was also the president of the main student body, Framtíðin.