provided the length of each train is 400m.