a=int(input())
b=int(input())

if b==(a*2) or a==(b*2):
    print('SIM')
else:
    print('NAO')

bd93eff51fb89376ebee8a453db30ecdc55a9bd2
<mask token>

<mask token>
if b == a * 2 or a == b * 2:
    print('SIM')
else:
    print('NAO')

a = int(input())
b = int(input())
if b == a * 2 or a == b * 2:
    print('SIM')
else:
    print('NAO')

a=int(input())
b=int(input())

if b==(a*2) or a==(b*2):
    print('SIM')
else:
    print('NAO')
