#include<stdio.h>
int main()
{
    int A,B,C;

    printf("Enter numbers: ");
    scanf("%d %d %d", &A, &B, &C);

    if(A==B && B != C)
    {
        printf("YES", A,B,C);
    }

    else if(A==C && C != B)
    {
        printf("YES", A,B,C);
    }
    else
    {
        printf("NO", A,B,C);
    }
    return 0;
}
