#include<stdio.h>

int main()
{
    int A,B,C;
    printf("Enter three integers:\n");
    scanf("%d %d %d",&A,&B,&C);
    if((A==B && B!=C) || (B==C && C!=A) || (A==C && A!=B))
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}
