// 2)
var
a: integer;
m: array[0..9] of integer;
begin
read(a);
while a > 0 do
begin
m[a mod 10] := m[a mod 10] + 1;
if m[a mod 10] >= 2 then begin
write('Есть');
break;
end;
a := a div 10;
end;
if a = 0 then write('Нет');
end.
1)
var
a, s, i: integer;
begin
read(a);
s := 0;
while a > 0 do
begin
s := s + a mod 10;
a := a div 10;
end;
write(s);
end.