A railway engine starts shunting wagons by first going 1000m north of railway station. It reverses and travels 1250m and then it again moves 600m north. Finally moving 800m south it comes to rest. How far is the engine from the station and in which direction?