Input (grade 6): He served as Federal President of Germany from 1979 to 1984.
Output (grade 8): On May 23, 1979 Carstens was elected as President of the Federal Republic of Germany.