import java.io.*;
import java.util.*;
import java.math.*;
import java.util.regex.Pattern;
class Main
{
		// your code goes here
		public static void main(String args[])
		{
                   // Comparator cmprtr=null;
                    int a,b,c;
                    Scanner sc= new Scanner(System.in);
                    a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt();
                    if(a==b && a!=c && b!=c)
                    {
                        System.out.println("Yes");
                    }
                    else if(a==c && a!=b && c!=b)
                    {
                        System.out.println("Yes");
                    }
                    else if(b==c && b!=a && c!=a)
                    {
                        System.out.println("Yes");
                    }
                   else
                    {
                        System.out.println("No");
                    }
                }}      import java.io.*; io.* java import java.util.*; util.* java import java.math.*; math.* java import java.util.regex.Pattern; Pattern java.util.regex class Main
{
		// your code goes here
		public static void main(String args[])
		{
                   // Comparator cmprtr=null;
                    int a,b,c;
                    Scanner sc= new Scanner(System.in);
                    a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt();
                    if(a==b && a!=c && b!=c)
                    {
                        System.out.println("Yes");
                    }
                    else if(a==c && a!=b && c!=b)
                    {
                        System.out.println("Yes");
                    }
                    else if(b==c && b!=a && c!=a)
                    {
                        System.out.println("Yes");
                    }
                   else
                    {
                        System.out.println("No");
                    }
                }} Main // your code goes here
		public static void main(String args[])
		{
                   // Comparator cmprtr=null;
                    int a,b,c;
                    Scanner sc= new Scanner(System.in);
                    a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt();
                    if(a==b && a!=c && b!=c)
                    {
                        System.out.println("Yes");
                    }
                    else if(a==c && a!=b && c!=b)
                    {
                        System.out.println("Yes");
                    }
                    else if(b==c && b!=a && c!=a)
                    {
                        System.out.println("Yes");
                    }
                   else
                    {
                        System.out.println("No");
                    }
                } main {
                   // Comparator cmprtr=null;
                    int a,b,c;
                    Scanner sc= new Scanner(System.in);
                    a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt();
                    if(a==b && a!=c && b!=c)
                    {
                        System.out.println("Yes");
                    }
                    else if(a==c && a!=b && c!=b)
                    {
                        System.out.println("Yes");
                    }
                    else if(b==c && b!=a && c!=a)
                    {
                        System.out.println("Yes");
                    }
                   else
                    {
                        System.out.println("No");
                    }
                } int a a b b c; c Scanner sc= new Scanner(System.in); sc new Scanner(System.in) a=sc.nextInt() a sc.nextInt() sc.nextInt sc b=sc.nextInt() b sc.nextInt() sc.nextInt sc c=sc.nextInt() c sc.nextInt() sc.nextInt sc if(a==b && a!=c && b!=c)
                    {
                        System.out.println("Yes");
                    }
                    else if(a==c && a!=b && c!=b)
                    {
                        System.out.println("Yes");
                    }
                    else if(b==c && b!=a && c!=a)
                    {
                        System.out.println("Yes");
                    }
                   else
                    {
                        System.out.println("No");
                    } a==b && a!=c && b!=c a==b && a!=c && b!=c a==b a b a!=c a c b!=c b c {
                        System.out.println("Yes");
                    } System.out.println("Yes") System.out.println System.out System System.out "Yes" if(a==c && a!=b && c!=b)
                    {
                        System.out.println("Yes");
                    }
                    else if(b==c && b!=a && c!=a)
                    {
                        System.out.println("Yes");
                    }
                   else
                    {
                        System.out.println("No");
                    } a==c && a!=b && c!=b a==c && a!=b && c!=b a==c a c a!=b a b c!=b c b {
                        System.out.println("Yes");
                    } System.out.println("Yes") System.out.println System.out System System.out "Yes" if(b==c && b!=a && c!=a)
                    {
                        System.out.println("Yes");
                    }
                   else
                    {
                        System.out.println("No");
                    } b==c && b!=a && c!=a b==c && b!=a && c!=a b==c b c b!=a b a c!=a c a {
                        System.out.println("Yes");
                    } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
                        System.out.println("No");
                    } System.out.println("No") System.out.println System.out System System.out "No" String args[] args
import java.io.*;
import java.util.*;
import java.math.*;
import java.util.regex.Pattern;
class Main
{
		// your code goes here
		public static void main(String args[])
		{
                   // Comparator cmprtr=null;
                    int a,b,c;
                    Scanner sc= new Scanner(System.in);
                    a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt();
                    if(a==b && a!=c && b!=c)
                    {
                        System.out.println("Yes");
                    }
                    else if(a==c && a!=b && c!=b)
                    {
                        System.out.println("Yes");
                    }
                    else if(b==c && b!=a && c!=a)
                    {
                        System.out.println("Yes");
                    }
                   else
                    {
                        System.out.println("No");
                    }
                }}     
