package pl.codegym.task.task04.task0428;
/*
Liczba dodatnia
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//tutaj wpisz swój kod
Scanner scanner = new Scanner( System.in );
String input = scanner.nextLine();
int x = Integer.parseInt( input );
String input1 = scanner.nextLine();
int y = Integer.parseInt( input1 );
String input2 = scanner.nextLine();
int z = Integer.parseInt( input2 );
if ((x > 0) && (y > 0) && (z > 0)) {
System.out.println(3);
} else if ((x <= 0) && (y > 0) && (z > 0)) {
System.out.println(2);
} else if ((x > 0) && (y <= 0) && (z > 0)) {
System.out.println(2);
} else if ((x > 0) && (y > 0) && (z <= 0)) {
System.out.println(2);
} else if ((x <= 0) && (y <= 0) && (z > 0)) {
System.out.println(1);
} else if ((x <= 0) && (y > 0) && (z <= 0)) {
System.out.println(1);
} else if ((x <= 0) && (y > 0) && (z <= 0)) {
System.out.println(1);
} else if ((x <= 0) && (y <= 0) && (z <= 0)) {
System.out.println(0);
}
}
}
package pl.codegym.task.task04.task0428;
/*
Liczba dodatnia
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//tutaj wpisz swój kod
Scanner scanner = new Scanner( System.in );
String input = scanner.nextLine();
int x = Integer.parseInt( input );
String input1 = scanner.nextLine();
int y = Integer.parseInt( input1 );
String input2 = scanner.nextLine();
int z = Integer.parseInt( input2 );
if ((x > 0) && (y > 0) && (z > 0)) {
System.out.println(3);
} else if ((x <= 0) && (y > 0) && (z > 0)) {
System.out.println(2);
} else if ((x > 0) && (y <= 0) && (z > 0)) {
System.out.println(2);
} else if ((x > 0) && (y > 0) && (z <= 0)) {
System.out.println(2);
} else if ((x <= 0) && (y <= 0) && (z > 0)) {
System.out.println(1);
} else if ((x <= 0) && (y > 0) && (z <= 0)) {
System.out.println(1);
} else if ((x <= 0) && (y > 0) && (z <= 0)) {
System.out.println(1);
} else if ((x <= 0) && (y <= 0) && (z <= 0)) {
//System.out.println(0);
}
}
}