прошу помочь, подскажите что почитать, где искать правильный путь к решению. что я делаю не так
package com.javarush.task.task04.task0428;
/*
Положительное число
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int d=0;// int d = Integer.parseInt(reader.readLine());;
if (a>0)
d = d + 1;
if (b>0)
d = d + 1;
if (c>0)
d = d + 1;
System.out.println(d);
if((a <= 0) && (b <= 0) && (c <= 0))
System.out.println("0");
}
}