uses crt;
var st,st1:string;
i,d,kt:integer;
begin
clrscr;
write('Nhap xau:'); readln(st);
d:=length(st);
kt:=0;
for i:=1 to d do
if st[i]<>st[d-i+1] then kt:=1;
if kt=0 then writeln('Day la xau doi xung')
else begin
st1:=''
for i:=d downto 1 do
st1:=st1+st[i];
writeln('Xau dao cua xau ',st,' la: ',st1);
end;
readln;
end.