package com.codegym.task.task04.task0428; /* Positive number */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String vard1 = reader.readLine(); String vard2 = reader.readLine(); String vard3 = reader.readLine(); int c1 = Integer.parseInt(vard1); int c2 = Integer.parseInt(vard2); int c3 = Integer.parseInt(vard3); int count = 0; if (c1 <= 0 && c2 <= 0 && c3 <= 0) System.out.println("0"); else { if (c1 < 0 && c2 < 0 && c3 < 0) count+=3; if (c1 <= 0 && c2 > 0 && c3 > 0 || c1 > 0 && c2 <= 0 && c3 > 0 || c1 > 0 && c2 > 0 && c3 <= 0) count+=2; if (c1 <= 0 && c2 <= 0 && c3 > 0 || c1 <= 0 && c2 > 0 && c3 <= 0 || c1 > 0 && c2 <= 0 && c3 <= 0) count+=1; } System.out.println(count); } }