Can't pass the second last test......
package com.codegym.task.task05.task0532;
import java.io.*;
import static java.lang.Character.MIN_VALUE;
/*
Task about algorithms
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(reader.readLine());
int max = MIN_VALUE;
//write your code here
if (N>0) {
for (int i = 1; i <= N; i++) {
int N2 = Integer.parseInt(reader.readLine());
if (N2 > max) {
max = N;
}
}
System.out.println(max);
}
}
}