uses crt;
var a:array[1..100]of integer;
i,n,x,y:integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
write('Nhap x='); readln(x);
write('Nhap y='); readln(y);
for i:=1 to n do
if a[i]=x then a[i]:=y;
writeln('Day sau khi thay doi la: ');
for i:=1 to n do
write(a[i]:4);
readln;
end.