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