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 sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); num(a, b, c); } public static void num(int a, int b, int c){ 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 (b < 0 && a > 0 && c > 0){ System.out.println(2); } else if (c < 0 && a > 0 && b > 0){ System.out.println(2); } else if (a > 0 && b < 0 && c < 0){ System.out.println(1); } else if (b > 0 && a < 0 && c < 0){ System.out.println(1); } else if (c > 0 && a < 0 && b < 0){ System.out.println(1); } else if (a < 0 && b < 0 && c < 0){ System.out.println(0); } } }