Pls help me, i don't understand where is the error, as the server doesn't pass my code: public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int maximum = Integer.MIN_VALUE; String qq = reader.readLine(); int n = Integer.parseInt(qq); for(int i=0; i<n; i++){ String rr = reader.readLine(); int ww = Integer.parseInt(rr); if (ww <= 0){ break; } else if(maximum < ww){ maximum = ww; } } //write your code here if(maximum > 0) System.out.println(maximum); } }