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 num = Integer.parseInt(reader.readLine());
int maximum = 0;
if (num <= 0) {
return;
}
while (num > 0) {
num = Integer.parseInt(reader.readLine());
if (maximum < num) {
maximum = num;
}
} System.out.println(maximum);
}
}
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 num = Integer.parseInt(reader.readLine());
int maximum = 0;
if (num <= 0) {
return;
}
while (num > 0) {
num = Integer.parseInt(reader.readLine());
if (maximum < num) {
maximum = num;
}
} System.out.println(maximum);
}
}