Some error occured while loading page for you. Please try again.
You are given a sequence of integers, . Each element in the sequence is distinct and satisfies . For each where , find any integer such that and print the value of on a new line.
For example, assume you have the sequence . For each value of between and we analyze as follows:
We find the values for .
The first line contains an integer , the number of elements in the sequence.
The second line contains space-separated integers where .
For each from to , print an integer denoting any valid satisfying the equation on a new line.
Sample Input 0
2 3 1
Sample Output 0
Given the values of , , and , we calculate and print the following values for each from to :