You are given points on the line y = 0. Your task is to answer queries regarding the number of pairs of points that have a distance equal to .
The first line contains an integer (1 \le n \le 10^5). The second line contains integers, representing the -coordinates of the points, where each coordinate is between and 10^5. All points have distinct coordinates. The third line contains an integer , the number of queries. Each of the following lines contains a single integer k_i (0 \le k_i \le 10^9).
For each query, output the number of pairs of points that have a distance equal to the given , with each result on a new line.
Example 1