b = list(map(int, input().split()))
if b[0] == 1 or b[0] == 3:
    if b[1] == 1 or b[1] == 3:
        print('Yes')
    else:
        print('No')
else:
    print('No')

4dd293177385547672be2359f8a677ffd55ae940
<mask token>

<mask token>
if b[0] == 1 or b[0] == 3:
    if b[1] == 1 or b[1] == 3:
        print('Yes')
    else:
        print('No')
else:
    print('No')

b = list(map(int, input().split()))
if b[0] == 1 or b[0] == 3:
    if b[1] == 1 or b[1] == 3:
        print('Yes')
    else:
        print('No')
else:
    print('No')
