A Mechanical Solution of a Literary Problem