Program Tema;
uses sysutils;
var s,invers:string;
c:char;
Begin
invers:='';
writeln('Introduceti sirul:');
readln(s);
for c in s do
begin
invers:=c+invers;
end;
if comparestr(s,invers)=0 then
writeln('Sirul este palindrom')
else
writeln('Sirul nu este palindrom');
End.