Input (grade 7): He attended Harvard University, where received his A.B., summa cum laude, and S.M. in applied mathematics in 1973.
Output (grade 6): He attended Harvard University, where he received his A.B., S.M. (1973), and Ph.D. (1976), all in applied mathematics.