You are given a sequence of N numbers and Q queries:
Answer all of the type 1 queries.
The first line contains one integer: N. The second line contains N integers, representing the numbers from the sequence. The third line contains one integer: Q, and the following Q lines contain Q queries, as described in the statement.
The output contains the answers to all of the type 1 queries, one per line.