Input (grade 13): The line of succession is restricted to the heirs of the Electress Sophia of Hanover, as determined by male-preference cognatic primogeniture, religion, and legitimate birth:
Output (grade 12): When someone who is in line to the throne has a child, that child comes after them and their other children, but before anyone else in the line of succession.