Problem

2 /8


Permutation of elements from a to b

Problem

Given an array of N elements (\(2<=N<=15\)). Rearrange elements from number a to number b in reverse order.

Input
At the input, in the first line N is a number, in the second line there are two integers a and b (\(a<b\)) - indexes of the elements in the range of which it is necessary to rearrange the array elements. The third line contains N numbers - the values ​​of the array elements.
Array element numbering starts from 1.

Imprint
Output the resulting array to a string
 
Example
# Input Output
1 5
24
43  56  76  84 100 
43 84 76 56 100