Which is better?

or

John F. Kennedy

US president

John F. Kennedy

John Quincy Adams

US president

John Quincy Adams