#include<stdio.h>

int main(void)
{
    int A,B,C;

    scanf("%d %d %d", &A,&B,&C);

    if(A == B && B != C && A != C)
        printf("Yes");
    if(B == C && B != A && C != A)
        printf("Yes");
    if(A == C && A != B && C != B)
        printf("Yes");
    else
        printf("No");

    return 0;
}
