#include<stdio.h>
int main()
{
    int c, a, b, f = 0;
    scanf("%d %d %d", &a, &b, &c);
    if(a==b && b==c)
    {
        f = 0;
    }
    else if(a==b || b==c || c==a)
    {
        f = 1;
    }
    switch(f)
    {
    case 0:
        printf("No\n");
        break;
    case 1:
        printf("Yes\n");
    }
    return 0;
}
