Const n = 12;
var a:array [1..n] of integer;
i,c,b:integer;
begin
randomize;
for i:=1 to n do
begin
a[i]:=random(21)-10;
write (a[i],' ');
end;
writeln;
repeat
write ('C = ');
readln (c);
until c in [1..n];
repeat
write ('B = ');
readln (b);
until b in [1..n];
if c for i:=c to b do write (a[i],' ')
else for i:=b to c do write (a[i],' ');
readln;
end.