Can't find a reason why it's not approved.
Please help me.
package pl.codegym.task.task05.task0532;
import java.io.*;
/*
Zadanie z algorytmami
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int maksimum;
int n = Integer.parseInt(reader.readLine());
maksimum = n;
if (n>0){
for(int a=n;a>=1;a--){
int b = Integer.parseInt(reader.readLine());
if(b>maksimum){
maksimum=b;
}
}
System.out.println(maksimum);
}
}
}