Оптимально ли так сделать, на данном уровне лекций?
package com.javarush.task.task04.task0428;
/*
Положительное число
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner (System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
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("3");
}
}