sentence1: The New York and Erie Railroad completed their route between Piermont and Dunkirk in 1851 , New York via Hornell and Salamanca .
sentence2: The New York and Erie Railroad completed their route between Hornell and Dunkirk in 1851 , New York via Piermont and Salamanca .