package com.javarush.task.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));
String k = reader.readLine();
String k1 = reader.readLine();
String k2 = reader.readLine();
int a = Integer.parseInt(k);//напишите тут ваш код
int b = Integer.parseInt(k1);
int c = Integer.parseInt(k2);
int x = 1;
if((a <= 0)||(b <= 0)||(c <= 0)){
x = 2;
}
if (((a <= 0)&&(b <= 0))||((b <= 0)&&(c <= 0))||((a <= 0)&&(c <= 0))){
x = 1;
}
if ((a <= 0)&&(b <= 0)&&(c <= 0))
x = 0;
System.out.println(x);
}
}
package com.javarush.task.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));
String k = reader.readLine();
String k1 = reader.readLine();
String k2 = reader.readLine();
int a = Integer.parseInt(k);//напишите тут ваш код
int b = Integer.parseInt(k1);
int c = Integer.parseInt(k2);
int x = 1;
if((a <= 0)||(b <= 0)||(c <= 0)){
x = 2;
}
if (((a <= 0)&&(b <= 0))||((b <= 0)&&(c <= 0))||((a <= 0)&&(c <= 0))){
x = 1;
}
if ((a <= 0)&&(b <= 0)&&(c <= 0))
x = 0;
System.out.println(x);
}
//System.out.println(x);
}