Input: Relationship: 'be president of', Argument/Subject 1: 'john quincy adam', Argument/Subject 2: 'unite state'

Answer: He became Secretary of Legation at London , shortly after Mr. John Quincy Adams became president of the United States in 1825 .