Input (grade 6): When Elizabeth became Queen in 1952, Philip left his naval career to act as her consort.
Output (grade 8): Prince Philip became the Duke of Edinburgh on the day he married, and became a Prince of the United Kingdom in 1957.