#include<stdio.h>
int main()
{
    int M,N,x;
    scanf("%d,%d",&M,&N);
    if(x=M)
    {
        if(x=N)
            printf("Yes\n");
            else
            printf("No\n");
    }else
    printf("No\n");
    return 0;

}
