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.
The first line contains an integer, , denoting the number of elements in the sequence.
The second line contains space-separated integers denoting the respective values of .
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 :