Given array of integers . For given indexes and find
The first line contains the amount of numbers . The second line contains the numbers . The third line contains the number of queries . Each of the next line contains the query and .
Print in separate lines the numbers .