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.



Sample input:
4 3 6


Sample output:
safe

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
""" AtCoder """

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

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

Submission status: Wrong Answer

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

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

print(Ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
d=a-b
print('delicious' if d>0 else 'dengerous' if d>x else 'safe')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

else:
    print('dangerous')

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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')

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

Solution code:
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')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#coding: utf-8
X, A, B = map(int, input().split())
print(["delicious", "safe", "dangerous"][(A > B) + (A + X < B) ])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
x, a,b  = map(int, input().split())

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

Submission status: Wrong Answer

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

if b < a:
    print("delicious")

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

else:
    print("dangerous")

Submission status: Wrong Answer

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

if b < a:
    print("delicious")

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

else:
    print("dangerous")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,a,b = (int(_) for _ in input().split())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if b-a>0 and b-a<=x:
    print('safe')
if b-a<=0:
    print('delicious')
if b-a>x:
    print('dengerous')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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


def eat(x,a,b):
  if a - b > 0:
    print("delicious")
  elif x + a - b <= 0:
    print("dangerous")
  else:
    print("safe")
    
eat(x,a,b)

Submission status: Wrong Answer

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


def eat(x,a,b):
  if a - b > 0:
    print("delicious")
  elif x + a - b < 0:
    print("dangerous")
  else:
    print("safe")
    
eat(x,a,b)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if A >= B:
  print('delicious')

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X,A,B=(int(i) for i in input().split())
c=int(B-A)
if c<0:
  print('delicious')
elif c<X+1:
  print('safe')
elif c>X+1:
  print('dangerous')

Submission status: Wrong Answer

Solution code:
X,A,B=(int(i) for i in input().split())
c=int(B-A)
if c<0:
  print('delicious')
elif c<X+1:
  print('safe')
else:
  print('dangerous')

Submission status: Wrong Answer

Solution code:
X,A,B=(int(i) for i in input().split())
c=int(B-A)
if A<B:
  print('delicious')
elif A-B<X+1:
  print('safe')
else:
  print('dangerous')

Submission status: Wrong Answer

Solution code:
X,A,B=(int(i) for i in input().split())
c=int(B-A)
if A<B:
  print('delicious')
elif A-B<X:
  print('safe')
else:
  print('dangerous')

Submission status: Wrong Answer

Solution code:
X,A,B=(int(i) for i in input().split())
c=int(B-A)
if A<B:
  print('delicious')
elif c<X:
  print('safe')
else:
  print('dangerous')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
b = a[1] - a[2]

if b > a[0]+1:
  print("dangerous")
elif b > 0:
  print("delicious")
else: 
  print("safe")

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
b = a[1] - a[2]

if b > a[0]:
  print("dangerous")
elif b > 0:
  print("delicious")
else: 
  print("safe")

Submission status: Wrong Answer

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

else:
    print('safe')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
X,A,B=map(int,input().split())
if B<=A:
    print("delicious")
elif A<B and B-A<=X:
    print("safe")
else:
    print("danger")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, raw_input().split())
#a, b, c = raw_input().split()
stom = (x<b-a)
deli = (b<=a)
if deli:
    print "delicious"
elif stom:
    print "dengerous"
else:
    print "safe"

Submission status: Wrong Answer

Solution code:
x,a,b = list(map(lambda x: int(x), input().split(" ")))

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = map(int, raw_input().split())

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

Submission status: Wrong Answer

Solution code:
k = map(int, raw_input().split())

if (k[2]-k[1] <= k[0]) or (k[2] < k[1]):
    print "safe"
else:
    print "dangerous"

Submission status: Wrong Answer

Solution code:
k = map(int, raw_input().split())

if (k[2]-k[1] <= k[0]) or (k[2] > k[1]):
    print "safe"
else:
    print "dangerous"

Submission status: Wrong Answer

Solution code:
k = map(int, raw_input().split())

if k[2]-k[1] < k[0]:
    print "safe"
else:
    print "dangerous"

Submission status: Wrong Answer

Solution code:
k = map(int, raw_input().split())

if k[2]-k[1] > k[0]:
    print "safe"
else:
    print "dangerous"