Input (grade 13): He was president of Iran from 1981 to 1989, and has been Supreme Leader of Iran since June 1989 when the Assembly of Experts appointed him to succeed Ayatollah Ruhollah Khomeini.
Output (grade 2): He was the president of Iran from 1981 to 1989.