Solve 11456 - Trainsorting.