Problem:
 Score : 100 points    Problem Statement Takahashi has a strong stomach. He never gets a stomachache from eating something whose "best-by" date is at most X days earlier.
He gets a stomachache if the "best-by" date of the food is X+1 or more days earlier, though.  Other than that, he finds the food delicious if he eats it not later than the "best-by" date. Otherwise, he does not find it delicious.  Takahashi bought some food A days before the "best-by" date, and ate it B days after he bought it.  Write a program that outputs delicious if he found it delicious, safe if he did not found it delicious but did not get a stomachache either, and dangerous if he got a stomachache.      Constraints  1 ≤ X,A,B ≤ 10^9         Input Input is given from Standard Input in the following format:  X  A  B       Output Print delicious if Takahashi found the food delicious; print safe if he neither found it delicious nor got a stomachache; print dangerous if he got a stomachache.        Sample Input 1 4 3 6      Sample Output 1 safe  He ate the food three days after the "best-by" date. It was not delicious or harmful for him.       Sample Input 2 6 5 1      Sample Output 2 delicious  He ate the food by the "best-by" date. It was delicious for him.       Sample Input 3 3 7 12      Sample Output 3 dangerous  He ate the food five days after the "best-by" date. It was harmful for him.

Solution (Python):
x,a,b = map(int,input().split())
if(-a+b > x):
    print("dangerous")
elif(-a+b > 0):
    print("safe")
else:
    print("delicious")

Solution (Python):
x, a, b = map(int, input().split())
if a >= b:
    print("delicious")
elif x + a >= b:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x, a, b = map(int, input().split())
y = b - a
if y <= 0:
  print('delicious')
elif x < y:
  print('dangerous')
else:
  print('safe')

Solution (Python):
a,b,c=map(int,input().split())
if b>=c:print("delicious")
elif a<c-b:print("dangerous")
else:print("safe")

Solution (Python):
x,a,b=(int(x) for x in input().split())
if b<=a:
    print("delicious")
elif b-a<=x:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x,a,b = map(int,input().split())
if a >= b:
    print('delicious')
elif b-a <= x:
    print('safe')
else:
    print('dangerous')

Solution (Python):
x,a,b = map(int,input().split())
if a >= b:
    print('delicious')
elif b-a <= x:
    print('safe')
else:
    print('dangerous')

Solution (Python):

x, a, b = map(int, input().split())
if(b>a+x):
    print("dangerous")
elif(b<=a):
    print("delicious")
else:
    print("safe")

Solution (Python):
X,A,B = map(int,input().split(' '))
msg = 'delicious' if B<=A else 'safe' if B<=(A+X) else 'dangerous'
print(msg)

Solution (Python):
def func(a, b, c):
    result = 'delicious' if (c - b) <= 0 else 'safe' if a >= (c - b) else 'dangerous'
    return result


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

Solution (Python):
x,a,b = (int(i) for i in input().split())

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

Solution (Python):
X,a,b =map(int,input().split())
if b <= a:
    print("delicious")
elif b <= a + X:
    print("safe")
else:
    print("dangerous")

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

Solution (Python):
X,A,B = map(int,input().split())
if A-B>=0:
	print("delicious")
elif abs(A-B)<=X:
	print("safe")
else:
	print("dangerous")

Solution (Python):
x,a,b=map(int,input().split())
print("dangerous" if x<b-a else "safe" if a<b else "delicious")

Solution (Python):
x,a,b=map(int,input().split())
if b<=a:
  print("delicious")
elif b<=x+a:
  print("safe")
else:
  print("dangerous")

Solution (Python):
X, A, B = map(int, input().split())

if A>=B:
  print('delicious')
elif B-A<=X:
  print('safe')
else:
  print('dangerous')

Solution (Python):
X, A, B = map(int, input().split())

if 0 < B - A and B - A <= X:
    print("safe")
elif B - A <= 0 and B - A <= X:
    print("delicious")
else:
    print("dangerous")

Solution (Python):
X, A, B = [int(x) for x in input().split()]
if A >= B:
  print("delicious")
elif B-A <= X:
  print("safe")
else:
  print("dangerous")

Solution (Python):
def main():
    X, A, B = map(int, input().split())
    if B - A <= 0:
        print("delicious")
    elif B - A <= X:
        print("safe")
    else:
        print("dangerous")


if __name__ == "__main__":
    main()

Solution (Python):
x, a, b = map(int, input().split())

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

Solution (Python):
X, A, B = [int(i) for i in input().split()]
print("delicious" if B <= A else "safe" if (B-A) <= X else "dangerous")

Solution (Python):
x,a,b=map(int,input().split())
d=b-a
if d<=0:
    print("delicious")
elif 0<d and d<=x:
    print("safe")
else:
    print("dangerous")

Solution (Python):
X, A, B = map(int,input().split())

if(B-A <= 0):
  print("delicious")
elif(B-A <= X):
  print("safe")
else:
  print("dangerous")

Solution (Python):
a,b,c = map(int, input().split())
if c-b<=0:
  print("delicious")
elif c-b>0 and c-b<=a:
  print("safe")
elif c-b>0 and c-b>a:
  print("dangerous")

Solution (Python):
x, a, b = map(int, input().split())

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

Solution (Python):
x, a, b = map(int, input().split())

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

Solution (Python):
X,A,B=map(int,input().split())
if B-A <= X and B-A > 0:
    print("safe")
elif B-A <=0:
    print("delicious")
elif B-A > X:
    print("dangerous")

Solution (Python):
X,A,B = map(int,input().split())
if B-A<=0:
  print("delicious")
elif B-A<=X:
  print("safe")
else:
  print("dangerous")

Solution (Python):

import sys

def main():
	X, A, B = map(int, input().split(" "))
	
	if A >= B:
		print("delicious")
		sys.exit()
	if B <= A + X:
		print("safe")
	else:
		print("dangerous")
		
if __name__ == "__main__":
	main()

Solution (Python):
X,A,B = map(int, input().split())
if 0 <= (A-B):
    print('delicious')
elif 0 <= ((X+A)-B):
    print('safe')
else:
    print('dangerous')

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

if (A-B >= 0):
    print("delicious")
elif (B-A<=X):
    print('safe')
else:
    print("dangerous")

Solution (Python):
x,a,b=map(int,input().split())
if a>=b:
  print("delicious")
elif a+x>=b:
  print("safe")
else:
  print("dangerous")

Solution (Python):
x, a, b = map(int, input().split())
limit = -a + b

if limit <= x:
    if limit <= 0:
        print('delicious')
    else:
        print('safe')

else:
    print('dangerous')

Solution (Python):
x,a,b = map(int, input().split())
if b-a <= 0:
  print("delicious")
elif b-a > x:
  print("dangerous")
else:
  print("safe")

Solution (Python):
X,A,B=map(int,input().split())
if (B-A)<=0:
  print("delicious")
else:
  if(B-A)<=X:
    print("safe")
  else:
    print("dangerous")

Solution (Python):
X, A, B = map(int, input().split())
if A >= B:
  print('delicious')
elif A < B <= A + X:
  print('safe')
else:
  print('dangerous')

Solution (Python):
x, a, b = map(int,input().split())
if a - b >= 0:
  print("delicious")
elif b - a > x:
  print("dangerous")
else:
  print("safe")

Solution (Python):
x,a,b=map(int,input().split())
if(a-b>=0):
  print('delicious')
elif(b-a<=x):
  print('safe')
else:
  print('dangerous')

Solution (Python):
x,a,b=map(int,input().split())
if(a-b>=0):
  print('delicious')
elif(b-a<=x):
  print('safe')
else:
  print('dangerous')

Solution (Python):
X, A, B = map(int, input().split())
if B <= A:
  print("delicious")
else:
  if B - A <= X:
    print("safe")
  else:
    print("dangerous")

Solution (Python):
x, a, b = map(int, input().split())

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

Solution (Python):
from sys import stdin
x, a, b = [int(x) for x in stdin.readline().rstrip().split()]
if a-b>=0:
    print("delicious")
elif x>=b-a:
    print("safe")
else:
    print("dangerous")

Solution (Python):
X,A,B=map(int,input().split())
if B<=A:
    print('delicious')
elif (B-A)>X:
    print('dangerous')
else:
    print('safe')

Solution (Python):
X,A,B=map(int,input().split())
if B<=A:
    print('delicious')
elif (B-A)<=X:
    print('safe')
else:
    print('dangerous')

Solution (Python):
X,A,B = map(int,input().split())

if(0<=B<=A):
  print('delicious')
elif(A<B<=A+X):
  print('safe')
else:
  print('dangerous')

Solution (Python):

X, A, B = map(int, input().split())
if B - A > X:
  print('dangerous')
elif B - A <= 0:
  print('delicious')
else:
  print('safe')

Solution (Python):
X,A,B=map(int,input().split())
if A>=B:
    print('delicious')
elif (B-A)>X:
    print('dangerous')
else:
    print('safe')

Solution (Python):
x, a, b = map(int, input().split())
if a >= b:
    print("delicious")
elif (b - a) <= x:
    print("safe")
else:
    print("dangerous")

Solution (Python):
a,b,c=map(int,input().split())
if b-c>=0:print("delicious")
elif c-b<=a:print("safe")
else:print("dangerous")

Solution (Python):
x,a,b=[int(i) for i in input().split()]
if a-b>=0:
    print("delicious")
elif x>=b-a:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x,a,b=map(int,input().split())
print("delicious" if b<=a else "safe" if b<=a+x else "dangerous")

Solution (Python):
x,a,b=map(int,input().split())
dif = b-a
if dif>x:
    print('dangerous')
elif dif>0:
    print('safe')
else:
    print('delicious')

Solution (Python):

x,a,b =map(int,input().split())
if a - b >= 0:
    print("delicious")
elif b- a <= x:
    print('safe')
else:
    print('dangerous')

Solution (Python):
x, a, b = map(int, input().split())

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

Solution (Python):
a,b,c=map(int,input().split())
print('delicious' if c<=b else 'safe' if c-b<=a else 'dangerous')

Solution (Python):
X, A, B = map(int , input().split())
if A >= B:
    print('delicious')
elif X >= B - A:
    print('safe')    
else:
    print('dangerous')

Solution (Python):
x, a, b = map(int, input().split())

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

Solution (Python):
X, A, B = [ int(x) for x in input().split() ]

if B <= A:
    ans = "delicious"
elif B > A + X:
    ans = "dangerous"
else:
    ans = "safe"

print(ans)
print()

Solution (Python):
X, A, B = map(int,input().split())
eat = B - A
if(eat <= 0):
  print('delicious')
elif(eat <= X):
  print('safe')
else:
  print('dangerous')

Solution (Python):
x,a,b = map(int,input().split())
if b-a <= 0:print('delicious')
elif 0 < b-a <= x:print('safe')
else:print('dangerous')

Solution (Python):
a,b,c=map(int,input().split());print('delicious' if c<=b else 'safe' if c<=a+b else 'dangerous')

Solution (Python):
x,a,b = map(int,input().split())
if a-b >= 0 :
    print('delicious')
elif b - a <= x:
    print('safe')
else:
    print('dangerous')

Solution (Python):
x,a,b = map(int,input().split())

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

Solution (Python):
x,a,b=map(int,input().split())
print("dangerous" if x<-a+b else "safe" if 0<-a+b else "delicious")

Solution (Python):
X,A,B = map(int, raw_input().split())
if A>=B:
  print "delicious"
elif B-A<=X:
  print "safe"
else:
  print "dangerous"

Solution (Python):
x,a,b=input().split()
if int(b)-int(a)<=0:
  print("delicious")
elif int(b)-int(a)<=int(x):
  print("safe")
else:
  print("dangerous")

Solution (Python):
xab = list(map(int, input().split()))
if xab[2] <= xab[1]:
    print('delicious')
elif xab[1] < xab[2] <= xab[0]+xab[1]:
    print('safe')
else:
    print('dangerous')

Solution (Python):
x,a,b = map(int,input().split())
if x+a >= b and a >= b:
    print("delicious")
elif x+a >= b and a < b:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x, a, b = map(int, input().split())
if b <= a:
  print("delicious")
elif b <= a+x:
  print("safe")
else:
  print("dangerous")

Solution (Python):
x,a,b=map(int,input().split())
if a-b>=0:
    print("delicious")
elif a-b+x>=0:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x,a,b=map(int,input().split())
if b<=a:
  print("delicious")
elif b-a<=x:
  print("safe")
else:
  print("dangerous")

Solution (Python):
X, A, B = map(int,input().split())

print("delicious" if A-B >= 0 else("safe" if B-A <= X else "dangerous"))

Solution (Python):
x,a,b=map(int,input().split())

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

Solution (Python):
x,a,b=map(int,input().split())
if(a-b>=0):
  print("delicious")
elif(b-a>x):
  print("dangerous")
else:
  print("safe")

Solution (Python):
x, a, b = map(int, input().split())
if b - a <= 0:
    ans = "delicious"
else:
    if b - a - x > 0:
        ans = "dangerous"
    else:
        ans = "safe"
print(ans)

Solution (Python):
X, A, B = map(int,input().split())

if A + X < B:
    print("dangerous")
elif A + X >= B and A < B:
    print("safe")
else:
    print("delicious")

Solution (Python):
X, A, B = map(int, input().split())
print("delicious" if B - A <= 0 else "safe" if B - A <= X else "dangerous")

Solution (Python):
a,b,c = map(int,input().split())
if b-c >= 0:
    print("delicious")
elif c-b <= a:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x,a,b=map(int,input().split())

if((b-a)<=0):
  print('delicious')
elif((b-a-x)<=0):
  print('safe')
else:print('dangerous')

Solution (Python):
x,a,b = map(int,input().split())

if b-a<=0:
    print('delicious')
elif b-a<=x:
    print('safe')
else:
    print('dangerous')

Solution (Python):
x,a,b=map(int,input().split())
if b<=a:
    print("delicious")
elif b-a<=x:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x,a,b=map(int,input().split())
print('delicious' if a>=b else 'safe' if x>=b-a
     else 'dangerous')

Solution (Python):
X, A, B = map(int, input().split())

if B - A <= 0:
    print('delicious')
elif X >= (B - A):
    print('safe')
else:
    print('dangerous')

Solution (Python):
""" AtCoder """

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

if A >= B:
    print("delicious")
elif (A + X) >= B:
    print("safe")
else:
    print("dangerous")

Solution (Python):
X,A,B = map(int,input().split())

Ans = "dangerous"
if A-B>=0:
    Ans = "delicious"
elif B-A <= X:
    Ans = "safe"

print(Ans)

Solution (Python):
X,A,B= map(int, input().split())
if A-B>=0:
	print('delicious')
else:
	if X>=abs(A-B):
		print('safe')
	else:
		print('dangerous')

Solution (Python):
x, a, b = map(int, input().split())
if b - a <= 0:
    print('delicious')
else:
    if b -a <= x :
        print('safe')
    else:
        print('dangerous')

Solution (Python):
x, a, b = map(int, input().split())

if a >= b:
    print("delicious")
else:
    if b - a > x:
        print("dangerous")
    else:
        print("safe")

Solution (Python):
x, a, b = map(int, input().split())

if a - b >= 0:
    print('delicious')
elif a + x - b >= 0:
    print('safe')
else:
    print('dangerous')

Solution (Python):

def getIntList(): return [int(x) for x in input().split()]
x,a,b = getIntList()
c = -a + b
if c<=0: print('delicious')
elif c<=x: print('safe')
else: print('dangerous')

Solution (Python):
x, a, b = [int(x) for x in input().split()]
print('delicious' if a - b >= 0 else 'safe' if x + a - b >= 0 else 'dangerous')

Solution (Python):
X, A, B = map(int, input().split())
if B <= A: print('delicious')
elif A < B <= A + X: print('safe')
elif A + X < B: print('dangerous')

Solution (Python):
X,A,B=map(int,input().split())
if A-B>=0:
    print("delicious")
elif B-A<=X:
    print("safe")
elif X+1<=B-A:
    print("dangerous")

Solution (Python):
x,a,b = map(int,input().split())
if a>=b:
    print("delicious")
elif a+x>=b:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x,a,b = (int(i) for i in input().split())
if b<=a:
 print('delicious')
elif b-a<= x:
 print('safe')
else:
 print('dangerous')

Solution (Python):
X,A,B = map(int,input().split())
 
if B-A <=0:
    print("delicious")
elif B - A - X <=0:
    print("safe")
else:
    print("dangerous")

Solution (Python):
int_x, int_a, int_b = map(int, input().split())

if int_a >= int_b:
    print("delicious")
elif int_a + int_x >= int_b:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x,a,b=map(int,input().split())
print('delicious' if b-a<=0 else 'dangerous' if x<b-a else 'safe')

Solution (Python):
x,a,b=map(int,input().split())
print('dangerous'if x<b-a else'safe' if a<b else'delicious')

Solution (Python):
x, a, b = map(int, input().split())

if a - b >= 0:
  print("delicious")
  exit()

if a-b+x < 0:
  print("dangerous")
else:
  print("safe")

Solution (Python):
X, A, B = map(int, input().split())
if B - A <= 0:
    print("delicious")
elif B - A <= X:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x,A,B = map(int,input().split())
if 0 >= B-A:
    print("delicious")
elif x >= B- A:
    print("safe")
else:
    print("dangerous")

Solution (Python):
X,A,B = map(int,input().split())
if B-A <= 0:
  print("delicious")
elif B-A <= X:
  print("safe")
else:
  print("dangerous")

Solution (Python):
X, A, B = [int(_) for _ in input().split()]

d = -A + B

if d <= 0:
    print("delicious")
elif d <= X:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x,a,b = list(map(int, input().split()))
if b <= a:
  print("delicious")
elif a<b and b <= a+x:
  print("safe")
elif a+x < b:
  print("dangerous")

Solution (Python):
x, a, b = map(int, input().split())

if(b<=a):
    print('delicious')
elif(a+x>=b):
    print('safe')
else:
    print('dangerous')

Solution (Python):
def abc065_a():
    x, a, b = map(int, input().split())
    if b <= a:
        print("delicious")
    elif b <= a + x:
        print("safe")
    else:
        print("dangerous")


abc065_a()

Solution (Python):
x,a,b=map(int,input().split())
if b>x+a:
    print("dangerous")
elif x+a>=b>a:
    print("safe")
else:
    print("delicious")

Solution (Python):
x,a,b=map(int,input().split())
if b-a<=0:
    print("delicious")
elif b-a<=x:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x,a,b=map(int,input().split())
if x<b-a:
  print("dangerous")
elif 0<b-a:
  print("safe")
else:
  print("delicious")

Solution (Python):
X, A, B = (int(x) for x in input().split())
if A >= B:
    print('delicious')
elif A + X >= B:
    print('safe')
else:
    print('dangerous')

Solution (Python):

x,y,z = map(int,input().split())
if y >= z:
    print("delicious")
elif z - y <= x:
    print("safe")
else:
    print("dangerous")

Solution (Python):
X, A, B = map(int,input().split())
m = B - A
if(m <= 0):
  print("delicious")
elif(m <= X):
  print("safe")
else:
  print("dangerous")

Solution (Python):
def main():
    x, a, b = map(int, input().split())
    t = b - a
    if t <= 0:
        print('delicious')
    elif t <= x:
        print('safe')
    else:
        print('dangerous')


if __name__ == '__main__':
    main()

Solution (Python):
x,a,b = map(int,input().split())
if b-a <= 0:
    print('delicious')
elif b-a<=x:

    print('safe')
else:
    print('dangerous')

Solution (Python):
x, a, b = map(int, input().split())
if b-a<=0:
  print("delicious")
elif b-a<=x:
  print("safe")
else:
  print("dangerous")

Solution (Python):
X,A,B=map(int,input().split())
if B-A<=0:
    print("delicious")
elif B-A>0 and B-A<=X:
    print("safe")
elif B-A>X:
    print("dangerous")

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

Solution (Python):
x,a,b=map(int,input().split())
print('dangerous'if x<b-a else'safe' if a<b else'delicious')

Solution (Python):
X, A, B = map(int, input().split())

if A >= B:
	print('delicious')
elif X >= (B-A):
	print('safe')
else:
	print('dangerous')

Solution (Python):
x, a, b = map(int, input().split())
if a - b >= 0:
    print('delicious')
elif b - a <= x:
    print('safe')
else:
    print('dangerous')

Solution (Python):
x,a,b=map(int,input().split())
if a>=b:
    print("delicious")
elif b-a<=x:
    print("safe")
else:
    print("dangerous")

Solution (Python):
from statistics import mean, median,variance,stdev
import sys
import math

x = input().split()

a= []
for i in range(len(x)):
    a.append(int(x[i]))

if a[1]-a[2]>=0: print("delicious")
elif a[2]-a[1] <= a[0] :print("safe")
else: print("dangerous")

Solution (Python):
X, A, B = map(int, input().split())

if -A + B <= 0:
  print('delicious')
elif -A + B <= X:
  print('safe')
else:
  print('dangerous')

Solution (Python):

X,A,B = map(int,input().split())
if B - A > X:
  print("dangerous")
elif B - A <= X and B - A > 0:
  print("safe")
else:
  print("delicious")

Solution (Python):



def main():
    """Function."""
    x, a, b = map(int, input().split())

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


if __name__ == "__main__":
    main()

Solution (Python):
x,a,b=[int(i) for i in input().split()]
if a>=b:
  print("delicious")
elif b-a<=x:
  print("safe")
else:
  print("dangerous")

Solution (Python):
X, A, B = map(int, input().split())
if A >= B:
  print("delicious")
elif B - A <= X:
  print("safe")
else:
  print("dangerous")

Solution (Python):
x, a, b = map(int, input().split())
if b <= a:
    print('delicious')
elif a < b <= (a+x):
    print('safe')
else:
    print('dangerous')

Solution (Python):
a,b,c=map(int,input().split())
if c-b>a:
    print("dangerous")
else:
    print("safe"if b<c else"delicious")

Solution (Python):
X, A, B = map(int, input().split(" "))
diff = B - A
if diff <= 0:
  print("delicious")
elif diff <= X:
  print("safe")
else:
  print("dangerous")

Solution (Python):
X,A,B = map(int,input().split())
if A >= B:
    print("delicious")
elif A < B:
    over = B-A
    if over <= X:
        print("safe")
    else:
        print("dangerous")

Solution (Python):
a=list(map(int,input().split()))
if a[1] >= a[2]:
    print("delicious")
elif a[2] <= a[1] + a[0]:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x,a,b=map(int,input().split())
print(['delicious','safe','dangerous'][(a<b)+(x+a<b)])

Solution (Python):
x,a,b=map(int,input().split())
if((a-b)>=0):
    print('delicious')

elif((b-a)<(x+1)):
    print('safe')

else:
    print('dangerous')

Solution (Python):
X, A, B = [int(i) for i in input().split()]
if A-B >= 0:
    print("delicious")
elif B-A <= X:
    print("safe")
else:
    print("dangerous")

Solution (Python):
X, A, B = [int(_) for _ in input().split()]
print(['delicious', 'safe', 'dangerous'][(B-A > 0)+(B-A > X)])

Solution (Python):

x, a, b = map(int, input().split())
if a - b >= 0:
    print("delicious")
elif x + a - b >= 0:
    print("safe")
else:
    print("dangerous")

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

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

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

Solution (Python):
x, a, b = map(int, input().split())

if a >= b:
    print('delicious')
elif a + x >= b:
    print('safe')
else:
    print('dangerous')

Solution (Python):
x,a,b = map(int,input().split())
diff  = a-b

result = x+diff
if   result >= x:
    print('delicious') 
elif result < 0:
    print('dangerous')
else:
    print('safe')

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

Solution (Python):
X, A, B = map(int, input().split())

if A >= B: print('delicious')
elif A+X >= B: print('safe')
else: print('dangerous')

Solution (Python):
a=input().strip().split(" ")

b=[int(i) for i in a]

c=b[2]-b[1]

if(c<=0):
    print("delicious")
elif(c<=b[0]):
    print("safe")
else:
    print("dangerous")

Solution (Python):
x,a,b = map(int,input().split())
if b - a <= 0:
  print('delicious')
elif b - a <= x:
  print('safe')
else:
  print('dangerous')

Solution (Python):
x,a,b = map(int,input().split())
print('delicious' if a-b >= 0 else 'safe' if b-a <= x else 'dangerous')

Solution (Python):
X, A, B = list(map(int, input().rstrip().split()))

n = B - A
result = 'delicious'
if 0 < n:
    if n <= X:
        result = 'safe'
    else:
        result = 'dangerous'


print(result)

Solution (Python):
a,b,c = map(int,input().split(" "))
if -b + c <= 0 :
    print("delicious")
elif -b + c <= a:
    print("safe")
else:
    print("dangerous")

Solution (Python):
X, A, B = map(int, input().split())

if B <= A:
    print('delicious')
elif (B - A) <= X:
    print('safe')
else:
    print('dangerous')

Solution (Python):
a = list(map(int,input().split()))
if a[1] >= a[2]:
  print("delicious")
elif (a[2] - a[1]) <= a[0]:
  print("safe")
else:
  print("dangerous")

Solution (Python):
X,A,B = list(map(int, input().strip().split(' ')))
day = B-A
if B<=A:
  print("delicious")
elif X>=day:
  print("safe")
else:
  print("dangerous")

Solution (Python):
X, A, B = map(int, input().split())
if A - B >= 0:
    print("delicious")
elif X >= B - A:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x,a,b = map(int,input().split())

if b-a > x:
        print('dangerous')
elif b-a > 0:
        print('safe')
else:
        print('delicious')

Solution (Python):
X, A, B = map(int, raw_input().split())

print "delicious" if A - B >= 0 else "safe" if X >= B - A else "dangerous"

Solution (Python):
X, A, B = map(int, input().split())
if A - B >= 0:
  print("delicious")
elif X >= B - A:
  print("safe")
else:
  print("dangerous")

Solution (Python):
x, a, b = map(int, input().split())
if x >= b:
    print('delicious')
elif x + a >= b:
    print('safe')
else:
    print('dangerous')

Solution (Python):
x,a,b=map(int,input().split());print('delicious'if a>=b else 'safe'if b-a<=x else 'dangerous')

Solution (Python):
X,A,B = map(int,input().split( ))
if  0 < B - A <= X:
	ans = 'safe'
elif B - A <=0:
	ans = 'delicious'
else:
	ans = 'dangerous'
print(ans)

Solution (Python):
x,a,b = map(int, input().split())
if a >= b:
    print("delicious")
elif x+a >= b:
    print('safe')
else:
    print('dangerous')

Solution (Python):
X, A, B = map(int, input().split())

if -A+B <= 0:
	print('delicious')
elif -A+B <= X:
	print('safe')
else:
	print('dangerous')

Solution (Python):
num = list(map(int, input().split()))
a = num[0]
b = num[1]
c = num[2]

if c <= b:
	print('delicious')
elif c<=b+a:
	print('safe')
else:
	print('dangerous')

Solution (Python):
X, A, B = map(int, input().split())
print("delicious" if A >= B else "safe" if (B - A) <= X else "dangerous")

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

if A >= B:
    ans = 'delicious'
elif B - A <= X:
    ans = 'safe'
else:
    ans = 'dangerous'

print(ans)

Solution (Python):
x,a,b=map(int,input().split())
if a>=b:
    print('delicious')
elif a+x>=b:
    print('safe')
else:
    print('dangerous')

Solution (Python):
x,a,b=map(int,input().split())

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

Solution (Python):
x,a,b=map(int,input().split())
y=a-b
if y>=0 and y<x:
	print('delicious')
elif y<0 and abs(y)<=x:
	print('safe')
else:
	print('dangerous')

Solution (Python):
X,A,B = map(int, input().split())

if -A+B<=0:
    print("delicious")
elif -A+B<=X:
    print("safe")
else:
    print("dangerous")

Solution (Python):
X, A, B = map(int,input().split())

if A >= B:
    print('delicious')
elif B <= A + X:
    print('safe')
else:
    print('dangerous')

Solution (Python):
x,a,b = map(int,input().split())

if b-a <= 0:
  print("delicious")
elif b-a <= x:
  print("safe")
if b-a > x:
  print("dangerous")

Solution (Python):
X,A,B = map(int, input().split())

if A >= B:
    print("delicious")
elif A < B <= A+X:
    print("safe")
else:
    print("dangerous")

Solution (Python):
X,A,B = map(int,input().split())
if B-A <= 0:
  print("delicious")
elif 0 < B-A <= X:
  print("safe")
else:
  print("dangerous")

Solution (Python):
X,A,B = map(int,input().split())

if A - B >= 0:
    print('delicious')
elif B - A <= X:
    print('safe')
else:
    print('dangerous')

Solution (Python):
x, a, b = map(int, input().split(" "))

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

Solution (Python):
x,a,b = map(int, input().split())
if b-a <= 0:
  print("delicious")
elif b-a-1 < x:
  print("safe")
else:
  print("dangerous")

Solution (Python):
x,a,b=map(int,input().split())
if a>=b:
  print("delicious")
elif a+x>=b:
  print("safe")
else:
  print("dangerous")

Solution (Python):
x, a, b = map(int, input().split())

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

Solution (Python):

X, A, B = map(int, input().split())
print(["delicious", "safe", "dangerous"][(A < B) + (A + X < B)])

Solution (Python):

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

if B <= A:
    print("delicious")
elif A < B <= A + X:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x,a,b = map(int,input().split())
if b-a <= 0:
  print("delicious")
elif b-a <= x:
  print("safe")
else:
  print("dangerous")

Solution (Python):
x,a,b = map(int,input().split())
if b <= a:
    print('delicious')
elif b<= a+x:
    print('safe')
else:
    print('dangerous')

Solution (Python):
X,A,B=list(map(int,input().split()))
if B-A<=0:
    print('delicious')
elif B-A-X<=0:
    print('safe')
else:
    print('dangerous')

Solution (Python):


x, a,b  = map(int, input().split())

if a >= b:
  print('delicious')
elif x>=(b-a):
  print('safe')
else:
  print('dangerous')

Solution (Python):
x,a,b = map(int,input().split())
if b - a > x:
  print("dangerous")
elif b - a <= 0:
  print("delicious")
else:
  print("safe")

Solution (Python):
x, a, b = map(int, input().split())

if b <= a:
    print("delicious")

elif b - a <= x:
    print("safe")

else:
    print("dangerous")

Solution (Python):
x, a, b = map(int, input().split())
print('delicious' if a >= b else 'safe' if a + x >= b else 'dangerous')

Solution (Python):
x,a,b = map(int, input().split())
if b <= a:
  print("delicious")
elif a < b <= a+x:
  print("safe")
else:
  print("dangerous")

Solution (Python):
x,a,b=map(int,input().split());print(['delicious',['safe','dangerous'][b-a>x]][a-b<0])

Solution (Python):
x,a,b=map(int,input().split());print(['delicious',['safe','dangerous'][b-a>x]][a-b<0])

Solution (Python):
a, b, c = map(int, input().split())
if b >= c:
    print("delicious")
elif c - b <= a:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x, a, b = list(map(int, input().split()))
if -a+b <= 0:
  print('delicious')
elif -a+b <= x:
  print('safe')
else:
  print('dangerous')

Solution (Python):

x,a,b = map(int,input().split())
if b-a <= 0:
    print('delicious')
elif b-a >= x+1:
    print('dangerous')
else:
    print('safe')

Solution (Python):
x, a, b = map(int, input().split())
if a >= b:
    print('delicious')
else:
    if b-a < x+1:
        print('safe')
    else:
        print('dangerous')

Solution (Python):
X,A,B=map(int,input().split())
if B<=A:
    print('delicious')
elif 0<B-A<=X:
    print('safe')
else:
    print('dangerous')

Solution (Python):
x, a, b = map(int, input().split())
if a + x - b < 0:
    print('dangerous')
elif a - b < 0:
    print('safe')
else:
    print('delicious')

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