var
a:integer;
begin
readln(a);
if ((a div 10) = (a mod 10)) then
writeln('да')
else writeln('нет');
end.
var
a:integer;
begin
readln(a);
if ((a div 10) = (a mod 10)) then
writeln('да')
else writeln('нет');
end.