public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String sa = reader.readLine(); String sb = reader.readLine(); String sc = reader.readLine(); //напишите тут ваш код int b = Integer.parseInt(sb); int c = Integer.parseInt(sc); int a = Integer.parseInt(sa); int count = 0; if (a>0 && b>0 && c >0){ System.out.println(count = count +3); } else if ((a>0 && b>0) || (a>0 && c>0) || (b>0 && c>0)){ System.out.println(count = count +2); } else if (a>0 || b>0 || c>0){ System.out.println (count = count +1); } else if (a<0 || b<0 || c<0){ System.out.println(0); } else if (a==0||b==0||c==0){ System.out.println(0); } } }