I think I understand the problem. Cannot find the solution to this one. Any advice would be much appreciated.

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)
{
for (int i=1;i<=N;i++)
{
int N2= Integer.parseInt(reader.readLine());
{
if (N2>maximum)
maximum=N2;
}
}
}
else
maximum = 0;
}
if ((maximum>0)&&(maximum!=0))
System.out.println(maximum);
else
;
}
}