x, a, b = [int(s) for s in input().split()]

print(("delicious" if b <= a else ("safe" if b <= a + x else "dangerous")))
x, a, b = [int(s) for s in input().split()]

if b <= a:

    ans = "delicious"

elif b <= a + x:

    ans = "safe"

else:

    ans = "dangerous"

print(ans)
x, a, b = [int(s) for s in input().split()]
print(("delicious" if b <= a else ("safe" if b <= a + x else "dangerous")))

x, a, b = [int(s) for s in input().split()]
if b <= a:
    ans = "delicious"
elif b <= a + x:
    ans = "safe"
else:
    ans = "dangerous"
print(ans)

-print(("delicious" if b <= a else ("safe" if b <= a + x else "dangerous"))) +if b <= a: +    ans = "delicious" +elif b <= a + x: +    ans = "safe" +else: +    ans = "dangerous" +print(ans)