x = int(input('x:'))
y = int(input('y:'))
if(x >= 0 and x * x + y * y >= 3 * 3 and x * x + y * y <= 5 * 5):
print('YES')
else:
print('NO')
x = int(input('x:'))
y = int(input('y:'))
if(x >= 0 and x * x + y * y >= 3 * 3 and x * x + y * y <= 5 * 5):
print('YES')
else:
print('NO')