package com.javarush.task.task04.task0428;
/*
Положительное число
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s1 = reader.readLine();
int a = Integer.parseInt(s1);
String s2 = reader.readLine();
int b = Integer.parseInt(s2);
String s3 = reader.readLine();
int c = Integer.parseInt(s3);
if (a>0 && b>0 && c>0) System.out.println(3);
else if (a>0 && b>0 && c<0) System.out.println(2);
else if (a>0 && b<0 && c>0) System.out.println(2);
else if (a<0 && b>0 && c>0) System.out.println(2);
else if (a>0 && b<0 && c<0) System.out.println(1);
else if (a<0 && b>0 && c<0) System.out.println(1);
else if (a<0 && b<0 && c>0) System.out.println(1);
else if (a<0 && b<0 && c<0) System.out.println(0);
}
}
package com.javarush.task.task04.task0428;
/*
Положительное число
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s1 = reader.readLine();
int a = Integer.parseInt(s1);
String s2 = reader.readLine();
int b = Integer.parseInt(s2);
String s3 = reader.readLine();
int c = Integer.parseInt(s3);
if (a>0 && b>0 && c>0) System.out.println(3);
else if (a>0 && b>0 && c<0) System.out.println(2);
else if (a>0 && b<0 && c>0) System.out.println(2);
else if (a<0 && b>0 && c>0) System.out.println(2);
else if (a>0 && b<0 && c<0) System.out.println(1);
else if (a<0 && b>0 && c<0) System.out.println(1);
else if (a<0 && b<0 && c>0) System.out.println(1);
else if (a<0 && b<0 && c<0) System.out.println(0);
}
}