SP27683 UFPR14D - Inquire
Description
**(EN:)**
Every tourist visiting our city must visit the May 4 avenue. There are **N** houses, numbered from 1 to **N**. There are **P** $ _{i} $ people living at house _i_.
The statistic institute is procedding with the survey this year. They will make many queries about the avenue's population. For each query, two numbers **A** and **B**, with **A**
Input Format
First line contains the number **N** (1
Output Format
For each query, print a line with its result.
**(PT-BR:)**
Todo turista que visita a cidade deve conhecer a Avenida Quatro de Maio. Há **N** casas na avenida, numeradas sequencialmente de 1 a **N**. Há **P** $ _{i} $ pessoas morando na casa de número _i_ da avenida.
O instituto de estatística está realizando o censo deste ano. Para tal, o instituto irá realizar diversas consultas sobre a população da avenida. Em cada consulta, são dados dois números **A** e **B**, com **A**