I'n not sure why this condition is still not passing... any suggestions that can help??
![]()

package com.codegym.task.task05.task0532;
import java.io.*;
import java.util.Scanner;
/*
Task about algorithms
*/
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
int maximum = N;
if(N>0)
{
for(int i = 0; i < N; i++)
{
int N2 = scanner.nextInt();
if(N2 > maximum)
maximum = N2;
}
if(maximum<=0)
{
}
else
System.out.println(maximum);
}
else{
}
}
}