still failing last condition any suggestions?
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;
int n = Integer.parseInt(reader.readLine());
for(int i = 0; i < n; i++){
int m = Integer.parseInt(reader.readLine());
if(m > maximum) {
maximum = m;
}
}
//write your code here
System.out.println(maximum);
}
}