#include <stdio.h>

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

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

    if (((A == B) && (C!=A) || ((A == C) && (B != A) || ((B == C) && (A != B)))))
        printf("\nYes");
    else
        printf("\nNo");
    return 0;
}