import java.util.Scanner;
public 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();

		System.out.println(A==B && B!=C || A==C&&A!=B || B==C&&B!=A?"Yes":"No");

		scan.close();
	}

} import java.util.Scanner; Scanner java.util public 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();

		System.out.println(A==B && B!=C || A==C&&A!=B || B==C&&B!=A?"Yes":"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();

		System.out.println(A==B && B!=C || A==C&&A!=B || B==C&&B!=A?"Yes":"No");

		scan.close();
	} main {

		Scanner scan = new Scanner(System.in);

		int A = scan.nextInt();
		int B = scan.nextInt();
		int C = scan.nextInt();

		System.out.println(A==B && B!=C || A==C&&A!=B || B==C&&B!=A?"Yes":"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 System.out.println(A==B && B!=C || A==C&&A!=B || B==C&&B!=A?"Yes":"No") System.out.println System.out System System.out A==B && B!=C || A==C&&A!=B || B==C&&B!=A?"Yes":"No" A==B && B!=C || A==C&&A!=B || B==C&&B!=A A==B && B!=C || A==C&&A!=B || B==C&&B!=A A==B && B!=C A==B A B B!=C B C A==C&&A!=B A==C A C A!=B A B B==C&&B!=A B==C B C B!=A B A "Yes" "No" scan.close() scan.close scan String[] args args public 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();

		System.out.println(A==B && B!=C || A==C&&A!=B || B==C&&B!=A?"Yes":"No");

		scan.close();
	}

} public 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();

		System.out.println(A==B && B!=C || A==C&&A!=B || B==C&&B!=A?"Yes":"No");

		scan.close();
	}

} Main
import java.util.Scanner;
public 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();

		System.out.println(A==B && B!=C || A==C&&A!=B || B==C&&B!=A?"Yes":"No");

		scan.close();
	}

}
