A train is going on a journey. First it travels east for 50 kilometers. Then it turns north and travels for 22 kilometers. Next it goes west for 50 kilometers. Finally, it travels south for a certain number of kilometers. At the end of its journey it is back at its original location. How many kilometers did it travel in the southward direction?