package pl.codegym.task.task04.task0419; /* Największa z czterech liczb */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String sLiczba = br.readLine(); String s3Liczba = br.readLine(); String s4Liczba = br.readLine(); String s2Liczba = br.readLine(); int a = Integer.parseInt(sLiczba); int c = Integer.parseInt(s3Liczba); int d = Integer.parseInt(s4Liczba); int b = Integer.parseInt(s2Liczba); int max; if (a > b || a > c || a > d) { max = a; System.out.println(max); }else if (b > a || b > c || b > d) { max = b; System.out.println(max); }else if (c > a || c > b || c > d) { max = c; System.out.println(c); }else if (d > a || d > b || d > c) { max = d; System.out.println(max); }else if (a == b && c == d) { max = a; System.out.println(max); } } }