package com.codegym.task.task04.task0428;
/*
Positive number
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner input = new Scanner(System.in);
int n1 = input.nextInt();
int n2 = input.nextInt();
int n3 = input.nextInt();
if ( (n1==0 && n2==0 && n3==0) || (n1<0 && n2<0 && n3<0) )
System.out.println(0);
else if( (n1>=0 && n2<=0 && n3<=0) || (n1<=0 && n2>=0 && n3<=0) || (n1<=0 && n2<=0 && n3>=0) )
System.out.println(1);
else if( (n1<=0 && n2>=0 && n3>=0) || (n1>=0 && n2<=0 && n3>=0) || (n1>=0 && n2>=0 && n3<=0) )
System.out.println(2);
else if (n1>=0 && n2>=0 && n3>=0)
System.out.println(3);
}
}

package com.codegym.task.task04.task0428;
/*
Positive number
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner input = new Scanner(System.in);
int n1 = input.nextInt();
int n2 = input.nextInt();
int n3 = input.nextInt();
if ( (n1==0 && n2==0 && n3==0) || (n1<0 && n2<0 && n3<0) )
System.out.println(0);
else if( (n1>=0 && n2<=0 && n3<=0) || (n1<=0 && n2>=0 && n3<=0) || (n1<=0 && n2<=0 && n3>=0) )
System.out.println(1);
else if( (n1<=0 && n2>=0 && n3>=0) || (n1>=0 && n2<=0 && n3>=0) || (n1>=0 && n2>=0 && n3<=0) )
System.out.println(2);
else if (n1>=0 && n2>=0 && n3>=0)
System.out.println(3);
}
}