Input (grade 12): He received his doctorate in 1897 and began to work as a gymnasium professor, first in Vienna, and later in Hranice (Moravia).
Output (grade 9): He got his doctorate in 1897 and began to work as a school teacher in Vienna, and later in Hranice, Moravia.