CODE
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int n, l, r;
int main(void) {
scanf("%d %d %d", &n, &l, &r);
vector<int> nums(n);
for (int i = 0; i < n; ++i) cin >> nums[i];
sort(begin(nums) + l, begin(nums) + r + 1);
for (const auto& x : nums) printf("%d ", x);
return 0;
}