1. var s: string;
begin
read(s);
if (s[1]=s[2]) or (s[1]=s[3]) or (s[2]=s[3]) then writeln('да')
else writeln ('нет');
end.
1. var s: string;
begin
read(s);
if (s[1]=s[2]) or (s[1]=s[3]) or (s[2]=s[3]) then writeln('да')
else writeln ('нет');
end.