I don't understand... it works fine but it doesn't pass!!!
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 n, maximum=0;
int giri=Integer.parseInt(reader.readLine());
for(int i=0; i<giri; i++){
n=Integer.parseInt(reader.readLine());
if(n>maximum) maximum=n;}
if(maximum>0)
System.out.println(maximum);
}
}