import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a =in.nextInt();
        int b =in.nextInt();
        int c =in.nextInt();
        int[] aa=new int[3];
        aa[0]=a;
        aa[1]=b;
        aa[2]=c;
        Arrays.sort(aa);
        if(aa[0]==aa[1]&&aa[2]>aa[0]){
            System.out.println("YES");
            return;
        }
        System.out.println("NO");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a =in.nextInt();
        int b =in.nextInt();
        int c =in.nextInt();
        int[] aa=new int[3];
        aa[0]=a;
        aa[1]=b;
        aa[2]=c;
        Arrays.sort(aa);
        if(aa[0]==aa[1]&&aa[2]>aa[0]){
            System.out.println("YES");
            return;
        }
        System.out.println("NO");
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a =in.nextInt();
        int b =in.nextInt();
        int c =in.nextInt();
        int[] aa=new int[3];
        aa[0]=a;
        aa[1]=b;
        aa[2]=c;
        Arrays.sort(aa);
        if(aa[0]==aa[1]&&aa[2]>aa[0]){
            System.out.println("YES");
            return;
        }
        System.out.println("NO");
    } main {
        Scanner in = new Scanner(System.in);
        int a =in.nextInt();
        int b =in.nextInt();
        int c =in.nextInt();
        int[] aa=new int[3];
        aa[0]=a;
        aa[1]=b;
        aa[2]=c;
        Arrays.sort(aa);
        if(aa[0]==aa[1]&&aa[2]>aa[0]){
            System.out.println("YES");
            return;
        }
        System.out.println("NO");
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int a =in.nextInt(); a in.nextInt() in.nextInt in int b =in.nextInt(); b in.nextInt() in.nextInt in int c =in.nextInt(); c in.nextInt() in.nextInt in int[] aa=new int[3]; aa new int[3] 3 aa[0]=a aa[0] aa 0 a aa[1]=b aa[1] aa 1 b aa[2]=c aa[2] aa 2 c Arrays.sort(aa) Arrays.sort Arrays aa if(aa[0]==aa[1]&&aa[2]>aa[0]){
            System.out.println("YES");
            return;
        } aa[0]==aa[1]&&aa[2]>aa[0] aa[0]==aa[1] aa[0] aa 0 aa[1] aa 1 aa[2]>aa[0] aa[2] aa 2 aa[0] aa 0 {
            System.out.println("YES");
            return;
        } System.out.println("YES") System.out.println System.out System System.out "YES" return; System.out.println("NO") System.out.println System.out System System.out "NO" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a =in.nextInt();
        int b =in.nextInt();
        int c =in.nextInt();
        int[] aa=new int[3];
        aa[0]=a;
        aa[1]=b;
        aa[2]=c;
        Arrays.sort(aa);
        if(aa[0]==aa[1]&&aa[2]>aa[0]){
            System.out.println("YES");
            return;
        }
        System.out.println("NO");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a =in.nextInt();
        int b =in.nextInt();
        int c =in.nextInt();
        int[] aa=new int[3];
        aa[0]=a;
        aa[1]=b;
        aa[2]=c;
        Arrays.sort(aa);
        if(aa[0]==aa[1]&&aa[2]>aa[0]){
            System.out.println("YES");
            return;
        }
        System.out.println("NO");
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a =in.nextInt();
        int b =in.nextInt();
        int c =in.nextInt();
        int[] aa=new int[3];
        aa[0]=a;
        aa[1]=b;
        aa[2]=c;
        Arrays.sort(aa);
        if(aa[0]==aa[1]&&aa[2]>aa[0]){
            System.out.println("YES");
            return;
        }
        System.out.println("NO");
    }
}
