var a,b,c:integer;
begin
writeln('Введите три стороны через пробел:');
read(a,b,c);
if (a<b+c) and (b<a+c) and (c<a+b) then begin
if (a=b) and (b=c) and (a=c) then
writeln('3');
if (a=b) or (b=c) or (a=c) xor ((a=b) and (b=c) and (a=c)) then
writeln('2');
if (a<>b) and (b<>c) and (a<>c) then
writeln('1');
end
else
writeln('0');
end.
var a,b,c:integer;
begin
writeln('Введите три стороны через пробел:');
read(a,b,c);
if (a<b+c) and (b<a+c) and (c<a+b) then begin
if (a=b) and (b=c) and (a=c) then
writeln('3');
if (a=b) or (b=c) or (a=c) xor ((a=b) and (b=c) and (a=c)) then
writeln('2');
if (a<>b) and (b<>c) and (a<>c) then
writeln('1');
end
else
writeln('0');
end.