Which is better?

or

Andrew Johnson

US president

Andrew Johnson

William McKinley

US president

William McKinley