#include
using namespace std;
void fun(int * array, int p, int q, int s)
{
int temp;
for (int i=0; i
{
temp = array[p+i];
array[p+i] = array[q+i];
array[q+i] = temp;
}
}
int main()
{
int n,p,q,s;
cin>>n;
int *array = new int[n];
for (int i=0; i
cin>>array[i];
cin>>p>>q>>s;
fun(array, p-1, q-1, s);
for (int i=0; i
cout<
return 0;
}