what is wrong in this?
help please
package com.codegym.task.task04.task0428;
/*
Positive number
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
int count = 0;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n1 = Integer.parseInt(br.readLine());
int n2 = Integer.parseInt(br.readLine());
int n3 = Integer.parseInt(br.readLine());
if(n1>0){
++count;
if(n2>0){
++count;
if(n3 > 0){
++count;
}
}
}
System.out.println(count);
}
}