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

for c in range(1,4):

    if a*b*c%2==1:

        print('Yes')

        exit()

print('No')
if 2 in list(map(int,input().split())):

    print('No')

else:

    print('Yes')

a, b = list(map(int, input().split()))
for c in range(1, 4):
    if a * b * c % 2 == 1:
        print("Yes")
        exit()
print("No")

if 2 in list(map(int, input().split())):
    print("No")
else:
    print("Yes")

-a, b = list(map(int, input().split())) -for c in range(1, 4): -    if a * b * c % 2 == 1: -        print("Yes") -        exit() -print("No") +if 2 in list(map(int, input().split())): +    print("No") +else: +    print("Yes")