Sort by growth#3607

Sort by growth

3 seconds
128 megabytes
Very easy

At the opening ceremony of the Olympic Games, as well as at its closing ceremony, the athletes of each country wore the same costumes. Naturally, with so many athletes, coaches, and support staff, the process of sewing the Olympic parade uniform for many countries was quite responsible and important, and it was necessary to know the growth of each member of the delegation to sew the uniform in an appropriate size. The companies that will be engaged in tailoring this uniform are partly lucky, since it is known that none of the members of the delegation are shorter than one and a half meters and above two and a half meters.

You have a database with the growth of each member of the delegation for the respective kind of sport. Your task is to quickly answer the next type of query: how many members of the delegation have heights in the range from to centimeters inclusively?

Input

The first line of each query contains one number n~(1 ≤ n ≤ 20000) - the number of members in the corresponding delegation. The second line contains integers - the heights of athletes in centimeters. The data are not sorted because they were placed in a database at the last moment, and therefore were not processed. The third line contains a query: numbers - the lower and upper limits of growth, in which the manufacturer is interested.

Output

For each query, print the answer on a separate line.

Examples

Example 1

Loading
Loading