program pil_4_12_e(input,output);
var
   a, b, c : real;
begin
	write('Input sides a, b, c : ');
  read(a, b, c);
	if (a>=b+c) or (b>=a+c) or (c>=a+b) then WriteLn('0')
  else if (a=b) and (b=c) then WriteLn('3')
  else if (a=b) or (b=c) or (a=c) then WriteLn('2')
  else WriteLn('1');
end.