import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A[] = new int[10];
		boolean b = false;
		for (int i=0;i<3;i++) {
			int temp = sc.nextInt();
			A[temp]++;
			if (A[temp]==2) {
				b = true;
			}
			if (A[temp]==3) {
				System.out.println("No");
				return ;
			}
		}
		if (!b) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A[] = new int[10];
		boolean b = false;
		for (int i=0;i<3;i++) {
			int temp = sc.nextInt();
			A[temp]++;
			if (A[temp]==2) {
				b = true;
			}
			if (A[temp]==3) {
				System.out.println("No");
				return ;
			}
		}
		if (!b) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A[] = new int[10];
		boolean b = false;
		for (int i=0;i<3;i++) {
			int temp = sc.nextInt();
			A[temp]++;
			if (A[temp]==2) {
				b = true;
			}
			if (A[temp]==3) {
				System.out.println("No");
				return ;
			}
		}
		if (!b) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int A[] = new int[10];
		boolean b = false;
		for (int i=0;i<3;i++) {
			int temp = sc.nextInt();
			A[temp]++;
			if (A[temp]==2) {
				b = true;
			}
			if (A[temp]==3) {
				System.out.println("No");
				return ;
			}
		}
		if (!b) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A[] = new int[10]; A new int[10] 10 boolean b = false; b false for (int i=0;i<3;i++) {
			int temp = sc.nextInt();
			A[temp]++;
			if (A[temp]==2) {
				b = true;
			}
			if (A[temp]==3) {
				System.out.println("No");
				return ;
			}
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			int temp = sc.nextInt();
			A[temp]++;
			if (A[temp]==2) {
				b = true;
			}
			if (A[temp]==3) {
				System.out.println("No");
				return ;
			}
		} {
			int temp = sc.nextInt();
			A[temp]++;
			if (A[temp]==2) {
				b = true;
			}
			if (A[temp]==3) {
				System.out.println("No");
				return ;
			}
		} int temp = sc.nextInt(); temp sc.nextInt() sc.nextInt sc A[temp]++ A[temp] A temp if (A[temp]==2) {
				b = true;
			} A[temp]==2 A[temp] A temp 2 {
				b = true;
			} b = true b true if (A[temp]==3) {
				System.out.println("No");
				return ;
			} A[temp]==3 A[temp] A temp 3 {
				System.out.println("No");
				return ;
			} System.out.println("No") System.out.println System.out System System.out "No" return ; if (!b) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		} !b b {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A[] = new int[10];
		boolean b = false;
		for (int i=0;i<3;i++) {
			int temp = sc.nextInt();
			A[temp]++;
			if (A[temp]==2) {
				b = true;
			}
			if (A[temp]==3) {
				System.out.println("No");
				return ;
			}
		}
		if (!b) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A[] = new int[10];
		boolean b = false;
		for (int i=0;i<3;i++) {
			int temp = sc.nextInt();
			A[temp]++;
			if (A[temp]==2) {
				b = true;
			}
			if (A[temp]==3) {
				System.out.println("No");
				return ;
			}
		}
		if (!b) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A[] = new int[10];
		boolean b = false;
		for (int i=0;i<3;i++) {
			int temp = sc.nextInt();
			A[temp]++;
			if (A[temp]==2) {
				b = true;
			}
			if (A[temp]==3) {
				System.out.println("No");
				return ;
			}
		}
		if (!b) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	}
}