import java.util.Scanner;


class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        int d = 0;
        if(a==b){
            if(a<c){
                d = 1;
            }
        }
        else if(a==c){
            if(a<b){
                d = 1;
            }
        }
        else if(c==b){
            if(c<a){
                d = 1;
            }
        }
        
        if(d==1){
            System.out.println("YES"); 
        }
        else{
            System.out.println("NO"); 
        }
        scan.close();
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        int d = 0;
        if(a==b){
            if(a<c){
                d = 1;
            }
        }
        else if(a==c){
            if(a<b){
                d = 1;
            }
        }
        else if(c==b){
            if(c<a){
                d = 1;
            }
        }
        
        if(d==1){
            System.out.println("YES"); 
        }
        else{
            System.out.println("NO"); 
        }
        scan.close();
    }
} Main public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        int d = 0;
        if(a==b){
            if(a<c){
                d = 1;
            }
        }
        else if(a==c){
            if(a<b){
                d = 1;
            }
        }
        else if(c==b){
            if(c<a){
                d = 1;
            }
        }
        
        if(d==1){
            System.out.println("YES"); 
        }
        else{
            System.out.println("NO"); 
        }
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        int d = 0;
        if(a==b){
            if(a<c){
                d = 1;
            }
        }
        else if(a==c){
            if(a<b){
                d = 1;
            }
        }
        else if(c==b){
            if(c<a){
                d = 1;
            }
        }
        
        if(d==1){
            System.out.println("YES"); 
        }
        else{
            System.out.println("NO"); 
        }
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan int d = 0; d 0 if(a==b){
            if(a<c){
                d = 1;
            }
        }
        else if(a==c){
            if(a<b){
                d = 1;
            }
        }
        else if(c==b){
            if(c<a){
                d = 1;
            }
        } a==b a b {
            if(a<c){
                d = 1;
            }
        } if(a<c){
                d = 1;
            } a<c a c {
                d = 1;
            } d = 1 d 1 if(a==c){
            if(a<b){
                d = 1;
            }
        }
        else if(c==b){
            if(c<a){
                d = 1;
            }
        } a==c a c {
            if(a<b){
                d = 1;
            }
        } if(a<b){
                d = 1;
            } a<b a b {
                d = 1;
            } d = 1 d 1 if(c==b){
            if(c<a){
                d = 1;
            }
        } c==b c b {
            if(c<a){
                d = 1;
            }
        } if(c<a){
                d = 1;
            } c<a c a {
                d = 1;
            } d = 1 d 1 if(d==1){
            System.out.println("YES"); 
        }
        else{
            System.out.println("NO"); 
        } d==1 d 1 {
            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" scan.close() scan.close scan String args[] args
import java.util.Scanner;


class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        int d = 0;
        if(a==b){
            if(a<c){
                d = 1;
            }
        }
        else if(a==c){
            if(a<b){
                d = 1;
            }
        }
        else if(c==b){
            if(c<a){
                d = 1;
            }
        }
        
        if(d==1){
            System.out.println("YES"); 
        }
        else{
            System.out.println("NO"); 
        }
        scan.close();
    }
}