import std.stdio, std.string, std.conv;

void main()
{
	auto ip = readln.split.to!(int[]), A = ip[0], B = ip[1], C = ip[2];
	int a;
	if(ip[0] = 1){
		a += 1;
	}
	if(ip[1] = 1){
		a += 1;
	}
	if(ip[2] = 1){
		a += 1;
	}
	writeln(a);
}