import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
	int n=3;
	int arr[]=new int[n];
	readArray(arr,sc);
	Arrays.sort(arr);
	if(arr[n-1]!=arr[n-2]) {
		System.out.println("YES");
	}else {
		System.out.println("NO");
	}
		

	}
	
	static void readArray(int[] arr,Scanner sc) { 
		for(int i=0;i<arr.length;i++) {
			arr[i]=sc.nextInt();
		}
	}
	
	
	

} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
	int n=3;
	int arr[]=new int[n];
	readArray(arr,sc);
	Arrays.sort(arr);
	if(arr[n-1]!=arr[n-2]) {
		System.out.println("YES");
	}else {
		System.out.println("NO");
	}
		

	}
	
	static void readArray(int[] arr,Scanner sc) { 
		for(int i=0;i<arr.length;i++) {
			arr[i]=sc.nextInt();
		}
	}
	
	
	

} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
	int n=3;
	int arr[]=new int[n];
	readArray(arr,sc);
	Arrays.sort(arr);
	if(arr[n-1]!=arr[n-2]) {
		System.out.println("YES");
	}else {
		System.out.println("NO");
	}
		

	} main {
		Scanner sc=new Scanner(System.in);
	int n=3;
	int arr[]=new int[n];
	readArray(arr,sc);
	Arrays.sort(arr);
	if(arr[n-1]!=arr[n-2]) {
		System.out.println("YES");
	}else {
		System.out.println("NO");
	}
		

	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=3; n 3 int arr[]=new int[n]; arr new int[n] n readArray(arr,sc) readArray arr sc Arrays.sort(arr) Arrays.sort Arrays arr if(arr[n-1]!=arr[n-2]) {
		System.out.println("YES");
	}else {
		System.out.println("NO");
	} arr[n-1]!=arr[n-2] arr[n-1] arr n-1 n 1 arr[n-2] arr n-2 n 2 {
		System.out.println("YES");
	} System.out.println("YES") System.out.println System.out System System.out "YES" {
		System.out.println("NO");
	} System.out.println("NO") System.out.println System.out System System.out "NO" String[] args args static void readArray(int[] arr,Scanner sc) { 
		for(int i=0;i<arr.length;i++) {
			arr[i]=sc.nextInt();
		}
	} readArray { 
		for(int i=0;i<arr.length;i++) {
			arr[i]=sc.nextInt();
		}
	} for(int i=0;i<arr.length;i++) {
			arr[i]=sc.nextInt();
		} int i=0; int i=0; i 0 i<arr.length i arr.length arr arr.length i++ i++ i {
			arr[i]=sc.nextInt();
		} {
			arr[i]=sc.nextInt();
		} arr[i]=sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc int[] arr arr Scanner sc sc public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
	int n=3;
	int arr[]=new int[n];
	readArray(arr,sc);
	Arrays.sort(arr);
	if(arr[n-1]!=arr[n-2]) {
		System.out.println("YES");
	}else {
		System.out.println("NO");
	}
		

	}
	
	static void readArray(int[] arr,Scanner sc) { 
		for(int i=0;i<arr.length;i++) {
			arr[i]=sc.nextInt();
		}
	}
	
	
	

} public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
	int n=3;
	int arr[]=new int[n];
	readArray(arr,sc);
	Arrays.sort(arr);
	if(arr[n-1]!=arr[n-2]) {
		System.out.println("YES");
	}else {
		System.out.println("NO");
	}
		

	}
	
	static void readArray(int[] arr,Scanner sc) { 
		for(int i=0;i<arr.length;i++) {
			arr[i]=sc.nextInt();
		}
	}
	
	
	

} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
	int n=3;
	int arr[]=new int[n];
	readArray(arr,sc);
	Arrays.sort(arr);
	if(arr[n-1]!=arr[n-2]) {
		System.out.println("YES");
	}else {
		System.out.println("NO");
	}
		

	}
	
	static void readArray(int[] arr,Scanner sc) { 
		for(int i=0;i<arr.length;i++) {
			arr[i]=sc.nextInt();
		}
	}
	
	
	

}
