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