Input (grade 8): She is the queen each country separately, but she lives in the United Kingdom, her oldest "realm".
Output (grade 8): She is the queen of each country separately, but she lives in the United Kingdom, her oldest "realm".