Complex sentence: In 1882 Cook published his memoirs "Hands Up! or Twenty Years of Detective Work in the Mountains and on the Plains" shortly after his retirement, living in Denver until his death on April 2,1907.
Split into simpler sentences: In 1882 Cook published his memoirs "Hands Up! or Twenty Years of Detective Work in the Mountains and on the Plains" shortly after his retirement. He lived in Denver until his death on April 2,1907.