import java.text.DecimalFormat; import java.util.stream.LongStream; import java.util.stream.IntStream; import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); PrintWriter out = new PrintWriter(System.out); //int t = sc.nextInt(); // while(t-->0){ Naveen problem = new Naveen(sc); problem.solve(out); // } out.flush(); } } class Naveen { int a,b,c,d; //int[] arr; Naveen(FastScanner sc) { a = sc.nextInt(); b = sc.nextInt(); c = sc.nextInt(); d = sc.nextInt(); // arr = sc.arrayInt(n); } void solve(PrintWriter out) { // int m = My.max(a,b,c,d); // int s = My.smax(a,b,c,d); // if((m==c||m==b)&&(s==c||s==b)&&(a!=b)&&(a!=c)&&(d!=b)&&(d!=c)){ // System.out.println("YES"); // }else{ // out.println("NO"); // } if(a Integer.MAX_VALUE) { throw new NumberFormatException(); } return (int) nl; } public double nextDouble() { return Double.parseDouble(next()); } public int[] arrayInt(int N) { int[] array = new int[N]; for (int i = 0; i < N; i++) { array[i] = nextInt(); } return array; } public long[] arrayLong(int N) { long[] array = new long[N]; for (int i = 0; i < N; i++) { array[i] = nextLong(); } return array; } public double[] arrayDouble(int N) { double[] array = new double[N]; for (int i = 0; i < N; i++) { array[i] = nextDouble(); } return array; } public String[] arrayString(int N) { String[] array = new String[N]; for (int i = 0; i < N; i++) { array[i] = next(); } return array; } public int randomInt() { Random r = new Random(); int value = r.nextInt((int) 1e6); System.out.println(value); return value; } public int[] randomInt(int N) { int[] array = new int[N]; Random r = new Random(); for (int i = 0; i < N; i++) { array[i] = r.nextInt((int) 1e6); } System.out.println(Arrays.toString(array)); return array; } } class My { public static long lower(long arr[],long key){ int low = 0; int high = arr.length-1; while(low < high){ int mid = low + (high - low)/2; if(arr[mid] >= key){ high = mid; } else{ low = mid+1; } } return low; } public static int upper(int arr[],int key){ int low = 0; int high = arr.length-1; while(low < high){ int mid = low + (high - low+1)/2; if(arr[mid] <= key){ low = mid; } else{ high = mid-1; } } return low; } static void ans(boolean b) { System.out.println(b ? "Yes" : "No"); } static void ANS(boolean b) { System.out.println(b ? "YES" : "NO"); } static String sort(String s) { char[] ch = s.toCharArray(); Arrays.sort(ch); return String.valueOf(ch); } static String reverse(String s) { return new StringBuilder(s).reverse().toString(); } static int[] reverse(int[] array) { for (int i = 0; i < array.length / 2; i++) { int temp = array[i]; array[i] = array[array.length - 1 - i]; array[array.length - 1 - i] = temp; } return array; } static long[] reverse(long[] array) { for (int i = 0; i < array.length / 2; i++) { long temp = array[i]; array[i] = array[array.length - 1 - i]; array[array.length - 1 - i] = temp; } return array; } static double[] reverse(double[] array) { for (int i = 0; i < array.length / 2; i++) { double temp = array[i]; array[i] = array[array.length - 1 - i]; array[array.length - 1 - i] = temp; } return array; } static String[] reverse(String[] array) { for (int i = 0; i < array.length / 2; i++) { String temp = array[i]; array[i] = array[array.length - 1 - i]; array[array.length - 1 - i] = temp; } return array; } static char[] reverse(char[] array) { for (int i = 0; i < array.length / 2; i++) { char temp = array[i]; array[i] = array[array.length - 1 - i]; array[array.length - 1 - i] = temp; } return array; } static long min(long... numbers) { Arrays.sort(numbers); return numbers[0]; } static int min(int... numbers) { Arrays.sort(numbers); return numbers[0]; } static double min(double... numbers) { Arrays.sort(numbers); return numbers[0]; } static long max(long... numbers) { Arrays.sort(numbers); return numbers[numbers.length - 1]; } static int max(int... numbers) { Arrays.sort(numbers); return numbers[numbers.length - 1]; } static int smax(int... numbers) { Arrays.sort(numbers); return numbers[numbers.length - 2]; } static double max(double... numbers) { Arrays.sort(numbers); return numbers[numbers.length - 1]; } static int sum(long number) { int sum = 0; while (number > 0) { sum += number % 10; number /= 10; } return sum; } }