public class Solution {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int a = Integer.parseInt(reader.readLine()), b = Integer.parseInt(reader.readLine()), c = Integer.parseInt(reader.readLine()), count = 0;

        if(a > 0)
            count += 1;
        if(b > 0)
            count += 1;
        if(c > 0)
            count += 1;

        System.out.println(count);
    }
}