#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a>=1&&a<=9&&b>=1&&b<=9&&c>=1&&c<=9)
{
if(a==b&&a!=c)
{
printf("Yes\n");
//printf("A and B are equal, but C is different from those two numbers, so this triple is poor.\n");

}
else if(b==c&&c!=a)
{
printf("Yes\n");
//printf("B and C are equal, but A is different from those two numbers, so this triple is poor.\n");

}
else if(c==a&&c!=b)
{
printf("Yes\n");
printf("A and C are equal, but B is different from those two numbers, so this triple is poor.\n");

}
else if(a==b&&b==c)
{
printf("No\n");
printf("A,B,andC are all equal, so this triple is not poor.\n");
}
else
{
printf("No\n");}
}

return 0;
}
