Input (grade 12): They then continued to India on pilgrimage, and finally settled in Gangtok at the invitation of the Chögyal, the king of Sikkim.
Output (grade 6): They settled in Gangtok at the invitation of the king of Sikkim.