Input (grade 13): Only 41 when her husband became president, Sarah Polk outlived several of her successors: Margaret Taylor, Abigail Fillmore, Jane Pierce, Mary Todd Lincoln, Eliza Johnson and Lucy Webb Hayes.
Output (grade 7): She lived longer than Margaret Taylor, Abigail Fillmore, Jane Pierce, Mary Todd Lincoln, Eliza Johnson and Lucy Webb Hayes.