sentences:  It is possible to travel between Tallinn and Riga with train change at Valga, and the timetables of Tallinn–Valga and Valga–Riga are adjusted for that purpose, but this still takes a long time compared to bus (travel time about 5 hours) or air.Historic train routes are Tallinn–Moscow via Tartu–Pechory, and Riga–St.Petersburg, which passed through Estonia from Valka, Latvia to Valga, Estonia–Võru–Piusa–Pechory, Russia.