Mirko stands at the entrance of a tunnel and Slavko stands at the exit. Each of them writes down the licence plate of every car in the order the cars drive past, and sends the list to a police patrol a few kilometres down the road.
From the two lists the patrol can decide without any doubt that certain drivers overtook inside the tunnel, which is strictly forbidden.
Write a program that counts the drivers who can be proven to have overtaken.
Assume the traffic inside the tunnel behaved normally, with no collisions and no cars stopping.