i am stuck with this for two days.
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 = Integer.MIN_VALUE;
int c = 0;
//write your code here
boolean s = false;
int N = Integer.parseInt(reader.readLine());
if(N>0)
for(int i=1; i<=N; i++){
int n = Integer.parseInt(reader.readLine());
if (n>maximum)
maximum = n;
}
System.out.println(maximum);
}
}