#include <stdio.h>
int main()
{
    int a, b, c;
    scanf(" %d %d %d", &a, &b, &c);
    if (a>=1&&b>=1&&c>=1&&a<=9&&b<=9&&c<=9)
        if((a==b&&a!=c)||(a==c&&a!=b)||(b==c&&b!=a))
            printf("Yes\n");
        else
            printf("No\n");
}