var a:array[1..200] of integer;
x,y,i,n:integer;
begin
write('n = ');readln(n);
write('x = ');readln(x);
write('y = ');readln(y);
for i:=1 to n do
begin
write('a[',i,' = ');readln(a[i]);
end;
for i:=1 to n do
if a[i] = x then a[i]:=y;
writeln('Mang sau khi thay the ');
for i:=1 to n do write(a[i]:10);
readln;
end.