a,s=list(map(int,input().split()))

if a!=2 and s!=2:

    print('Yes')

    

else:

    print('No')

a,s=list(map(int,input().split()))

if a==2 or s==2:

    print('No')

else:

    print('Yes')

a, s = list(map(int, input().split()))
if a != 2 and s != 2:
    print("Yes")
else:
    print("No")

a, s = list(map(int, input().split()))
if a == 2 or s == 2:
    print("No")
else:
    print("Yes")

-if a != 2 and s != 2: +if a == 2 or s == 2: +    print("No") +else: -else: -    print("No")