Names and characters
Given names of people (numbered from to in the given order), where each name is written on a separate line.
Your task is to answer queries of the form , where corresponds to the number of the person and to the index of character of the persons' name.
For each query, print a single character corresponding to character of the person's name.
Input
First line contains number of people and number of queries . Each of the next lines contains one name and can be up to characters long.
Each of the next lines contains two numbers and < length of the name of a person number .
It is known that there won't be more than characters in the input.
Output
For each query print a single character corresponding to character of the person's name. Print all characters in one line.