You are the signalman of platforms 1 to 4. Your job is to get the trains through the station, without causing any accidents.