import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }

    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int[] d = new int[10];
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        for (int i = 1; i < 10; i++) {
            if (d[i] == 2) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }

    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int[] d = new int[10];
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        for (int i = 1; i < 10; i++) {
            if (d[i] == 2) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} Main public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    } main {
        Main main = new Main();
        main.solve();
    } Main main = new Main(); main new Main() main.solve() main.solve main String[] args args public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int[] d = new int[10];
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        for (int i = 1; i < 10; i++) {
            if (d[i] == 2) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } solve {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int[] d = new int[10];
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        for (int i = 1; i < 10; i++) {
            if (d[i] == 2) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in))); scan new Scanner(new BufferedReader(new InputStreamReader(System.in))) int[] d = new int[10]; d new int[10] 10 d[scan.nextInt()] += 1 d[scan.nextInt()] d scan.nextInt() scan.nextInt scan 1 d[scan.nextInt()] += 1 d[scan.nextInt()] d scan.nextInt() scan.nextInt scan 1 d[scan.nextInt()] += 1 d[scan.nextInt()] d scan.nextInt() scan.nextInt scan 1 for (int i = 1; i < 10; i++) {
            if (d[i] == 2) {
                System.out.println("Yes");
                return;
            }
        } int i = 1; int i = 1; i 1 i < 10 i 10 i++ i++ i {
            if (d[i] == 2) {
                System.out.println("Yes");
                return;
            }
        } {
            if (d[i] == 2) {
                System.out.println("Yes");
                return;
            }
        } if (d[i] == 2) {
                System.out.println("Yes");
                return;
            } d[i] == 2 d[i] d i 2 {
                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" public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }

    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int[] d = new int[10];
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        for (int i = 1; i < 10; i++) {
            if (d[i] == 2) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }

    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int[] d = new int[10];
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        for (int i = 1; i < 10; i++) {
            if (d[i] == 2) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }

    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int[] d = new int[10];
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        for (int i = 1; i < 10; i++) {
            if (d[i] == 2) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
}
