Input (grade 10): Both the adopted sons were educated at the palace as it was the custom those days for the people of Royal families.
Output (grade 4): Both the adopted sons were educated at the palace.