В чем проблема, бесит уже эта штука
package com.javarush.task.task05.task0532;
import java.io.*;
/*
Задача по алгоритмам
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int maximum = 0;
int i=0;
String s = reader.readLine();
int N = Integer.parseInt(s);
if (N>0)
{
while (i<N)
{
String s2 = reader.readLine();
int b = Integer.parseInt(s2);
if (b>maximum)
{
maximum = b;;
}
i++;
}
System.out.println(maximum);
}
}
}