My code works but fails the verification test.
I need help please: where is the bug?

Loading, please wait...

```
package com.codegym.task.task05.task0532;
import java.io.*;
/*
Task about algorithms
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int maximum = 0;
//write your code here
int N = Integer.parseInt(reader.readLine());
if (N > 0) {
while (N > 0) {
int numbers = Integer.parseInt(reader.readLine());
if (numbers > maximum) {
maximum = numbers;
N -= 1;
} else {
N -= 1;
}
}
System.out.println(maximum);
}
}
}
```