var a: array [1..10] of integer;
i, x, y, xi, yi, t: integer;
begin
for i := 1 to 10 do
readln(a[i]);
writeln('X, Y');
readln(X, Y);
for i := 0 to abs(round(0.5*(x-y))) do
begin
t := a[x+i];
a[x+i] := a[y-i];
a[y-i] := t;
end;
for i := 1 to 10 do
writeln('[', i, '] => ', a[i]);
end.