import java.io.*;
import java.math.*;
import java.util.*;

public class Main {

	static class Pair {
		public int x, y, id;
		public Pair() {
			x = y = 0;
		}
		public Pair(int x, int y, int i) {
			this.x = x;
			this.y = y;
			id = i;
		}
	}
	
	public static void main(String[] args) throws IOException {

		InputReader in = new InputReader(System.in);
		PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
		int A = in.nextInt();
		int B = in.nextInt();
		int C=in.nextInt();
		if(A==B&&B==C)out.print("No\n");
		else if(A==B)out.print("Yes\n");
		else if(B==C)out.print("Yes\n");
		else if(C==A)out.print("Yes\n");
		else out.print("No\n");
		out.flush();

	}

	static class InputReader {
		StreamTokenizer tokenizer;

		public InputReader(InputStream stream) {
			tokenizer = new StreamTokenizer(new BufferedReader(new InputStreamReader(stream)));
			tokenizer.ordinaryChars(33, 126);
			tokenizer.wordChars(33, 126);
		}

		public String next() throws IOException {
			tokenizer.nextToken();
			return tokenizer.sval;
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public boolean hasNext() throws IOException {
			int res = tokenizer.nextToken();
			tokenizer.pushBack();
			return res != StreamTokenizer.TT_EOF;
		}
	}

} import java.io.*; io.* java import java.math.*; math.* java import java.util.*; util.* java public class Main {

	static class Pair {
		public int x, y, id;
		public Pair() {
			x = y = 0;
		}
		public Pair(int x, int y, int i) {
			this.x = x;
			this.y = y;
			id = i;
		}
	}
	
	public static void main(String[] args) throws IOException {

		InputReader in = new InputReader(System.in);
		PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
		int A = in.nextInt();
		int B = in.nextInt();
		int C=in.nextInt();
		if(A==B&&B==C)out.print("No\n");
		else if(A==B)out.print("Yes\n");
		else if(B==C)out.print("Yes\n");
		else if(C==A)out.print("Yes\n");
		else out.print("No\n");
		out.flush();

	}

	static class InputReader {
		StreamTokenizer tokenizer;

		public InputReader(InputStream stream) {
			tokenizer = new StreamTokenizer(new BufferedReader(new InputStreamReader(stream)));
			tokenizer.ordinaryChars(33, 126);
			tokenizer.wordChars(33, 126);
		}

		public String next() throws IOException {
			tokenizer.nextToken();
			return tokenizer.sval;
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public boolean hasNext() throws IOException {
			int res = tokenizer.nextToken();
			tokenizer.pushBack();
			return res != StreamTokenizer.TT_EOF;
		}
	}

} Main public static void main(String[] args) throws IOException {

		InputReader in = new InputReader(System.in);
		PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
		int A = in.nextInt();
		int B = in.nextInt();
		int C=in.nextInt();
		if(A==B&&B==C)out.print("No\n");
		else if(A==B)out.print("Yes\n");
		else if(B==C)out.print("Yes\n");
		else if(C==A)out.print("Yes\n");
		else out.print("No\n");
		out.flush();

	} main {

		InputReader in = new InputReader(System.in);
		PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
		int A = in.nextInt();
		int B = in.nextInt();
		int C=in.nextInt();
		if(A==B&&B==C)out.print("No\n");
		else if(A==B)out.print("Yes\n");
		else if(B==C)out.print("Yes\n");
		else if(C==A)out.print("Yes\n");
		else out.print("No\n");
		out.flush();

	} InputReader in = new InputReader(System.in); in new InputReader(System.in) PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out))); out new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out))) 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 if(A==B&&B==C)out.print("No\n");
		else if(A==B)out.print("Yes\n");
		else if(B==C)out.print("Yes\n");
		else if(C==A)out.print("Yes\n");
		else out.print("No\n"); A==B&&B==C A==B A B B==C B C out.print("No\n") out.print out "No\n" if(A==B)out.print("Yes\n");
		else if(B==C)out.print("Yes\n");
		else if(C==A)out.print("Yes\n");
		else out.print("No\n"); A==B A B out.print("Yes\n") out.print out "Yes\n" if(B==C)out.print("Yes\n");
		else if(C==A)out.print("Yes\n");
		else out.print("No\n"); B==C B C out.print("Yes\n") out.print out "Yes\n" if(C==A)out.print("Yes\n");
		else out.print("No\n"); C==A C A out.print("Yes\n") out.print out "Yes\n" out.print("No\n") out.print out "No\n" out.flush() out.flush out String[] args args static class Pair {
		public int x, y, id;
		public Pair() {
			x = y = 0;
		}
		public Pair(int x, int y, int i) {
			this.x = x;
			this.y = y;
			id = i;
		}
	} Pair public int x x y y id; id public Pair() {
			x = y = 0;
		} Pair {
			x = y = 0;
		} x = y = 0 x y = 0 y 0 public Pair(int x, int y, int i) {
			this.x = x;
			this.y = y;
			id = i;
		} Pair {
			this.x = x;
			this.y = y;
			id = i;
		} this.x = x this.x this this.x x this.y = y this.y this this.y y id = i id i int x x int y y int i i static class InputReader {
		StreamTokenizer tokenizer;

		public InputReader(InputStream stream) {
			tokenizer = new StreamTokenizer(new BufferedReader(new InputStreamReader(stream)));
			tokenizer.ordinaryChars(33, 126);
			tokenizer.wordChars(33, 126);
		}

		public String next() throws IOException {
			tokenizer.nextToken();
			return tokenizer.sval;
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public boolean hasNext() throws IOException {
			int res = tokenizer.nextToken();
			tokenizer.pushBack();
			return res != StreamTokenizer.TT_EOF;
		}
	} InputReader StreamTokenizer tokenizer; tokenizer public InputReader(InputStream stream) {
			tokenizer = new StreamTokenizer(new BufferedReader(new InputStreamReader(stream)));
			tokenizer.ordinaryChars(33, 126);
			tokenizer.wordChars(33, 126);
		} InputReader {
			tokenizer = new StreamTokenizer(new BufferedReader(new InputStreamReader(stream)));
			tokenizer.ordinaryChars(33, 126);
			tokenizer.wordChars(33, 126);
		} tokenizer = new StreamTokenizer(new BufferedReader(new InputStreamReader(stream))) tokenizer new StreamTokenizer(new BufferedReader(new InputStreamReader(stream))) tokenizer.ordinaryChars(33, 126) tokenizer.ordinaryChars tokenizer 33 126 tokenizer.wordChars(33, 126) tokenizer.wordChars tokenizer 33 126 InputStream stream stream public String next() throws IOException {
			tokenizer.nextToken();
			return tokenizer.sval;
		} next {
			tokenizer.nextToken();
			return tokenizer.sval;
		} tokenizer.nextToken() tokenizer.nextToken tokenizer return tokenizer.sval; tokenizer.sval tokenizer tokenizer.sval public int nextInt() throws IOException {
			return Integer.parseInt(next());
		} nextInt {
			return Integer.parseInt(next());
		} return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public long nextLong() throws IOException {
			return Long.parseLong(next());
		} nextLong {
			return Long.parseLong(next());
		} return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public boolean hasNext() throws IOException {
			int res = tokenizer.nextToken();
			tokenizer.pushBack();
			return res != StreamTokenizer.TT_EOF;
		} hasNext {
			int res = tokenizer.nextToken();
			tokenizer.pushBack();
			return res != StreamTokenizer.TT_EOF;
		} int res = tokenizer.nextToken(); res tokenizer.nextToken() tokenizer.nextToken tokenizer tokenizer.pushBack() tokenizer.pushBack tokenizer return res != StreamTokenizer.TT_EOF; res != StreamTokenizer.TT_EOF res StreamTokenizer.TT_EOF StreamTokenizer StreamTokenizer.TT_EOF public class Main {

	static class Pair {
		public int x, y, id;
		public Pair() {
			x = y = 0;
		}
		public Pair(int x, int y, int i) {
			this.x = x;
			this.y = y;
			id = i;
		}
	}
	
	public static void main(String[] args) throws IOException {

		InputReader in = new InputReader(System.in);
		PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
		int A = in.nextInt();
		int B = in.nextInt();
		int C=in.nextInt();
		if(A==B&&B==C)out.print("No\n");
		else if(A==B)out.print("Yes\n");
		else if(B==C)out.print("Yes\n");
		else if(C==A)out.print("Yes\n");
		else out.print("No\n");
		out.flush();

	}

	static class InputReader {
		StreamTokenizer tokenizer;

		public InputReader(InputStream stream) {
			tokenizer = new StreamTokenizer(new BufferedReader(new InputStreamReader(stream)));
			tokenizer.ordinaryChars(33, 126);
			tokenizer.wordChars(33, 126);
		}

		public String next() throws IOException {
			tokenizer.nextToken();
			return tokenizer.sval;
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public boolean hasNext() throws IOException {
			int res = tokenizer.nextToken();
			tokenizer.pushBack();
			return res != StreamTokenizer.TT_EOF;
		}
	}

} public class Main {

	static class Pair {
		public int x, y, id;
		public Pair() {
			x = y = 0;
		}
		public Pair(int x, int y, int i) {
			this.x = x;
			this.y = y;
			id = i;
		}
	}
	
	public static void main(String[] args) throws IOException {

		InputReader in = new InputReader(System.in);
		PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
		int A = in.nextInt();
		int B = in.nextInt();
		int C=in.nextInt();
		if(A==B&&B==C)out.print("No\n");
		else if(A==B)out.print("Yes\n");
		else if(B==C)out.print("Yes\n");
		else if(C==A)out.print("Yes\n");
		else out.print("No\n");
		out.flush();

	}

	static class InputReader {
		StreamTokenizer tokenizer;

		public InputReader(InputStream stream) {
			tokenizer = new StreamTokenizer(new BufferedReader(new InputStreamReader(stream)));
			tokenizer.ordinaryChars(33, 126);
			tokenizer.wordChars(33, 126);
		}

		public String next() throws IOException {
			tokenizer.nextToken();
			return tokenizer.sval;
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public boolean hasNext() throws IOException {
			int res = tokenizer.nextToken();
			tokenizer.pushBack();
			return res != StreamTokenizer.TT_EOF;
		}
	}

} Main
import java.io.*;
import java.math.*;
import java.util.*;

public class Main {

	static class Pair {
		public int x, y, id;
		public Pair() {
			x = y = 0;
		}
		public Pair(int x, int y, int i) {
			this.x = x;
			this.y = y;
			id = i;
		}
	}
	
	public static void main(String[] args) throws IOException {

		InputReader in = new InputReader(System.in);
		PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
		int A = in.nextInt();
		int B = in.nextInt();
		int C=in.nextInt();
		if(A==B&&B==C)out.print("No\n");
		else if(A==B)out.print("Yes\n");
		else if(B==C)out.print("Yes\n");
		else if(C==A)out.print("Yes\n");
		else out.print("No\n");
		out.flush();

	}

	static class InputReader {
		StreamTokenizer tokenizer;

		public InputReader(InputStream stream) {
			tokenizer = new StreamTokenizer(new BufferedReader(new InputStreamReader(stream)));
			tokenizer.ordinaryChars(33, 126);
			tokenizer.wordChars(33, 126);
		}

		public String next() throws IOException {
			tokenizer.nextToken();
			return tokenizer.sval;
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public boolean hasNext() throws IOException {
			int res = tokenizer.nextToken();
			tokenizer.pushBack();
			return res != StreamTokenizer.TT_EOF;
		}
	}

}
