public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int b = 0;
for (int i = 0; i < 4; i++) {
int a = Integer.parseInt(reader.readLine());
if (b == 0) b = a;
else
if (b <= a) b = a;
}
System.out.println(b);
}
}
package com.javarush.task.task04.task0419;
/*
Максимум четырех чисел
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int b = 0;
for (int i = 0; i < 4; i++) {
int a = Integer.parseInt(reader.readLine());
if (b == 0) b = a;
else
if (b <= a) b = a;
}
System.out.println(b);
}
}