begin
var k := ReadSeqInteger('Введите три целых числа:', 3).Distinct.Count;
Print(k = 3 ? 0 : k = 2 ? 2 : 3)
end.
program a1;
var
a, b, c: integer;
writeln('Введите три числа');
readln(a, b, c);
if a = b then
if a = c then Write(3)
else Write(2)
else
if (a = c) or (b = c) then Write(2)
else Write(0)
begin
var k := ReadSeqInteger('Введите три целых числа:', 3).Distinct.Count;
Print(k = 3 ? 0 : k = 2 ? 2 : 3)
end.
program a1;
var
a, b, c: integer;
begin
writeln('Введите три числа');
readln(a, b, c);
if a = b then
if a = c then Write(3)
else Write(2)
else
if (a = c) or (b = c) then Write(2)
else Write(0)
end.