vara,b,c,ans:integer;beginreadln(a,b,c);ans := 0;if(a>0)then inc(ans);if(b>0)then inc(ans);if(c>0)then inc(ans);writeln(ans);readln;end.
var
a,b,c,ans:integer;
begin
readln(a,b,c);
ans := 0;
if(a>0)then inc(ans);
if(b>0)then inc(ans);
if(c>0)then inc(ans);
writeln(ans);
readln;
end.