A non-empty array A consisting of N integers is given. The consecutive elements of array A represent consecutive cars on a road.