public class Solution {
    public static void main(String[] args) throws Exception {
        BufferedReader r=new BufferedReader (new InputStreamReader(System.in));
        int a = Integer.parseInt(r.readLine());
        int b = Integer.parseInt(r.readLine());
        int c = Integer.parseInt(r.readLine());

        if (a>0) {
            count ++;
            }
        else if (b>0) {
            count ++;
            }
        else if (c>0) {
             count ++;
            }
        else {
            System.out.println("0");
        }
           System.out.println(count);
           }
}