Input (grade 7): Before that, he was the Minister of Foreign Affairs.
Output (grade 7): Before his post as prime minister, he was the Minister of Foreign Affairs.