First Czechoslovak Republic
After World War I and the Dissolution of Austria-Hungary and the Treaty of Trianon Upper Hungary became part of the First Czechoslovak Republic and with it the countries northern railway lines.