import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int a = Integer.parseInt(str[0]);
    int b = Integer.parseInt(str[1]);
    int c = Integer.parseInt(str[2]);
    System.out.println(((a==b)&&(b!=c))||((b==c)&&(c!=a))||((c==a)&&(a!=b))
                       ?"Yes":"No");
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int a = Integer.parseInt(str[0]);
    int b = Integer.parseInt(str[1]);
    int c = Integer.parseInt(str[2]);
    System.out.println(((a==b)&&(b!=c))||((b==c)&&(c!=a))||((c==a)&&(a!=b))
                       ?"Yes":"No");
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int a = Integer.parseInt(str[0]);
    int b = Integer.parseInt(str[1]);
    int c = Integer.parseInt(str[2]);
    System.out.println(((a==b)&&(b!=c))||((b==c)&&(c!=a))||((c==a)&&(a!=b))
                       ?"Yes":"No");
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int a = Integer.parseInt(str[0]);
    int b = Integer.parseInt(str[1]);
    int c = Integer.parseInt(str[2]);
    System.out.println(((a==b)&&(b!=c))||((b==c)&&(c!=a))||((c==a)&&(a!=b))
                       ?"Yes":"No");
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String[] str = in.readLine().split(" "); str in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int a = Integer.parseInt(str[0]); a Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int b = Integer.parseInt(str[1]); b Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int c = Integer.parseInt(str[2]); c Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 System.out.println(((a==b)&&(b!=c))||((b==c)&&(c!=a))||((c==a)&&(a!=b))
                       ?"Yes":"No") System.out.println System.out System System.out ((a==b)&&(b!=c))||((b==c)&&(c!=a))||((c==a)&&(a!=b))
                       ?"Yes":"No" ((a==b)&&(b!=c))||((b==c)&&(c!=a))||((c==a)&&(a!=b)) ((a==b)&&(b!=c))||((b==c)&&(c!=a))||((c==a)&&(a!=b)) ((a==b)&&(b!=c)) (a==b) a b (b!=c) b c ((b==c)&&(c!=a)) (b==c) b c (c!=a) c a ((c==a)&&(a!=b)) (c==a) c a (a!=b) a b "Yes" "No" String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int a = Integer.parseInt(str[0]);
    int b = Integer.parseInt(str[1]);
    int c = Integer.parseInt(str[2]);
    System.out.println(((a==b)&&(b!=c))||((b==c)&&(c!=a))||((c==a)&&(a!=b))
                       ?"Yes":"No");
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int a = Integer.parseInt(str[0]);
    int b = Integer.parseInt(str[1]);
    int c = Integer.parseInt(str[2]);
    System.out.println(((a==b)&&(b!=c))||((b==c)&&(c!=a))||((c==a)&&(a!=b))
                       ?"Yes":"No");
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int a = Integer.parseInt(str[0]);
    int b = Integer.parseInt(str[1]);
    int c = Integer.parseInt(str[2]);
    System.out.println(((a==b)&&(b!=c))||((b==c)&&(c!=a))||((c==a)&&(a!=b))
                       ?"Yes":"No");
  }
}