X, A, B = list(map(int,input().split()))

if A >= B:

    print("delicious")

elif X+A >= B:

    print("safe")

else:

    print("dangerous")

X, A, B = list(map(int,input().split()))

if B <= A:

    print("delicious")

elif B <= A+X:

    print("safe")

else:

    print("dangerous")

X, A, B = list(map(int, input().split()))
if A >= B:
    print("delicious")
elif X + A >= B:
    print("safe")
else:
    print("dangerous")

X, A, B = list(map(int, input().split()))
if B <= A:
    print("delicious")
elif B <= A + X:
    print("safe")
else:
    print("dangerous")

-if A >= B: +if B <= A: -elif X + A >= B: +elif B <= A + X: