package com.javarush.task.jdk13.task04.task0428; import java.io.BufferedReader; import java.io.InputStreamReader; /* Положительные числа */ 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()); int b = Integer.parseInt(reader.readLine()); int c = Integer.parseInt(reader.readLine()); int x = 3; if (a > 0 & b > 0 & c > 0) { System.out.println(x);} else if (a>0& b>0 &c<0) { System.out.println(x-1); } else if (a>0& b<0 &c<0) { System.out.println(x-2); } else if (a>0& b<=0 &c>0) { System.out.println(x-1); } else if (a<=0& b<0 &c>0) { System.out.println(x-2); } else if (a<=0& b>0 &c>0) { System.out.println(x-1); } else if (a<=0& b<=0 &c<=0) { System.out.println(0); } else if (a<=0& b>0 &c<=0) { System.out.println(x-2); }/* else if (a==0& b!=0 & c!=0){ System.out.println(x-1); } else if (a==0&&b==0 & c!=0){ System.out.println(x-2); } else if(a==0&&b==0&c==0){ System.out.println(x-3);*/ } }