Moving Dots
You are given dots that are located on -asis, -th of which has a coordinate . You can move dots. Furthermore, you know, that the dots are so small, that if they do intersect, they will merge into one dot. When two dots do merge, dot with smaller index overlap dot with bigger one, so its index will equal to the smallest index among their indexes. In one second, you can do the following:
Choose one dot among all current existing dots. Let its index be .
Move dot with index from position to or to .
In other words, in one second you can choose a dot and move either left or right by .
You are given queries. For each query, you need to print the least number of dots that can remain on the plain after seconds passed.
Input
The first line of input contains a single integer () — number of dots.
The second line of input contain integers () — coordinates of the dots on the line.
The next line of input contains one integer () — number of queries.
The following line of input contain integers ().
Output
Print lines — answers for the corresponding queries.
Examples
Scoring
( points): ;
( points): ;
( points): ;
( points): ;
( points): ;
( points): no additional restrictions.