#include <stdio.h>
int main ()
{
    int a,b,c;

    scanf("%d%d%d",&a,&b,&c);

    if (a==b && a==c)
    {
        printf("No\n A, B and C are all equal, so this triple is not poor\n");
    }

    else if (a==b && c!=a || c!=b)
    {
        printf("Yes\n A and B are equal But C is different, so this triple is poor\n");
    }

    else if (b==c && a!=b || a!=c)
    {
        printf("Yes\n B and C are equal But A is different, so this triple is poor\n");
    }

    else if (a==c && b!=a || b!=c)
    {
        printf("Yes\n A and C are equal But B is different, so this triple is poor\n");
    }

    else
    {
        printf("Yes\n A, B and C are all different, so this triple is poor\n");
    }
}
