INPUT "r=", r
INPUT "a=", a
INPUT "x=", x
INPUT "y=", y
IF (x >= 0) AND (y > 0) AND (x ^ 2 + y ^ 2 < r ^ 2) OR (x < 0) AND (x >= a) AND (y <= r) AND (y >= -r) THEN PRINT "yes" ELSE PRINT "no"
INPUT "r=", r
INPUT "a=", a
INPUT "x=", x
INPUT "y=", y
IF (x >= 0) AND (y > 0) AND (x ^ 2 + y ^ 2 < r ^ 2) OR (x < 0) AND (x >= a) AND (y <= r) AND (y >= -r) THEN PRINT "yes" ELSE PRINT "no"