The sensor at each station detects {HEAD ~ the arrival} or departure of {TAIL ~ each customer} 
The sensor at each station detects { HEAD ~ the arrival } or departure of { TAIL ~ each customer }
OTH OTH OTH OTH OTH OTH HEAD HEAD HEAD HEAD HEAD HEAD OTH OTH REL TAIL TAIL TAIL TAIL TAIL TAIL