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:
    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 + 1 <= B - A:
    print("dangerous")
else:
    print("safe")

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<=0:
    print('delicious')
elif b-a <= x:
    print('safe')
else:
    print('dangerous')

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

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

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

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 b-a<=0:
    print("delicious")
    exit()
elif b-a<=x:
    print("safe")
else:
    print("dangerous")

Solution (Python):
import sys
input = sys.stdin.readline

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

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

if (c<=b):
    print("delicious")
elif (c>b):
    if (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:
    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):
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

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

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):
X, A, B = map(int, input().split(' '))

over = B - A

if over <= 0:
    print('delicious')
elif over <= 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 a >= b:
  print('delicious')
elif b - a <= x:
  print('safe')
else:
  print('dangerous')

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

Solution (Python):
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
INF = 10**9
mod = 10**9+7

X,A,B = I()
if X >= 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):
x,a,b = map(int,input().split())
if b <= a:
  print('delicious')
elif x+a >= b:
  print('safe')
else:
  print('dangerous')

Solution (Python):
x,a,b=map(int,input().split())
if b-a>0:
  if b-a>x:
    print("dangerous")
  else:
    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")

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:
  print('delicious')
elif b -a <= x:
  print('safe')
else:
  print('dangerous')

Solution (Python):
input = input()
s_input = input.split()
x = int(s_input[0])
a = int(s_input[1])
b = int(s_input[2])

kigenchouka = b - a

if kigenchouka > x:
    print("dangerous")
else:
    if kigenchouka <= 0:
        print("delicious")
    else:
        print("safe")

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

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

if b-a <=0:
    print("delicious")
    
elif 0 < b-a <= x:
    print("safe")
elif x < b-a:
    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:
  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<=X+A:
  print("safe")
else:
  print("dangerous")

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

if a-b>=0:
  print('delicious')
elif a-b<0 and 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-a <= x:print("safe")
else: print("dangerous")

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

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

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

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):
import sys
X,A,B = map(int,input().split())
if X < 0 or A < 0 or B < 0 or X > 10 ** 9 or A > 10 ** 9 or B > 10 ** 9:
    sys.exit()

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

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

a = A * (-1)

if (a+B < X+1) and (A < B):
    print("safe")

elif (A >= B):
    print("delicious")

elif (a+B >= X+1):
    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):
from fractions import gcd
from collections import Counter, deque, defaultdict
from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge
from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort
from itertools import accumulate, product, permutations, combinations

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

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

if __name__ == '__main__':
    main()

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 actual(X, A, B):
    is_unexpired = (A - B)

    if is_unexpired >= 0:
        return 'delicious'

    elapsed_after_expiration_day = (B - A)
    if elapsed_after_expiration_day <= X:
        return 'safe'

    return 'dangerous'

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

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

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

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

print('delicious'if B <= A else 'safe' if A<B and B-A<=X else '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 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 <= X + 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 = 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())
eat = B-A

if A >= B:
    print("delicious")
elif eat >= X+1:
    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):
def resolve():
    x, a, b = map(int, input().split())

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

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 a >= b:
  print("delicious")
elif a+x >= b:
  print("safe")
else:
  print("dangerous")

Solution (Python):
X,A,B=map(int,input().split())
if X<B-A:
  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())
if X<B-A:
  print("dangerous")
elif B-A<=0:
  print("delicious")
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())
L = A + X
if A >= B:
  print("delicious")
elif B <= L:
  print("safe")
else:
  print("dangerous")

Solution (Python):
X, A, B = map(int,input().split())
L = A + X
if A >= B:
  print("delicious")
elif B <= L:
  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:
  print('delicious')
elif b <= a + x:
  print('safe')
else:
  print('dangerous')

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

Solution (Python):
x,a,b = map(int,input().split())
d = b - a
if d <= 0: print('delicious')
elif d <= 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 A>=B:
  print("delicious")
elif B-A<=X:
  print("safe")
else:
  print("dangerous")

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

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

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

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

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:
    print("delicious")
elif (b - a) <= x and b >= a:
    print("safe")
else:
    print("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):
X, A, B = map(int, input().split())
if A >= B:
    print("delicious")
elif A + X + 1 > B:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x, a, b = map(int, input().split())
if a >= b:
    print("delicious")
elif a < b and 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 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 X-B+A < 0:
    print('dangerous')
elif B <= A:
    print('delicious')
else:
    print('safe')

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):
def main():
    z = 0
    x,a,b = map(int,input().split())
    if a >= b:
        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 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)<0 and (X-B+A)>=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>x:
    print('dangerous')
elif b-a<=0:
    print('delicious')
else:
    print('safe')

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 a - b >= 0:
    print('delicious')
elif a + x - 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())

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

Solution (Python):
level = 0
x, a, b = map(int, input().split())
level -= a
level += b
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<=0:
    print("delicious")
elif 0<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())
t=a-b
if t>=0:
    print('delicious')
else:
    if abs(t)<=x:
        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):
def resolve():
    X, A, B = map(int, input().split())
    print("delicious" if A>=B else "dangerous" if A+X<B else "safe")
resolve()

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 and b-a<x:
	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 A>=B:
    print('delicious')
elif A<B<=X+A:
    print('safe')
else:
    print('dangerous')

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

if b-a<=0:
    print("delicious")
elif x-(b-a)>=0:
    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 >=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 0<(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 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):
import sys
import math
 
sys.setrecursionlimit(10 ** 8)
input = sys.stdin.readline
 
def main():
  x,a,b = map(int, input().split())
  
  if b-a <= 0:
    print("delicious")
  elif b-a >0 and b-a <= x:
    print("safe")
  else:
    print("dangerous")
    
if __name__ == '__main__':
    main()

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

if Expired<=0:
    print('delicious')
elif 0<Expired<=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 x+a<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 else 'safe' if b<=a+x else 'dangerous')

Solution (Python):
x,a,b = map(int, input().split())
if a - b >= 0:
    print("delicious") 
    exit()
if b - a <= x:
    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):
n = list(map(int, input().split()))
if n[1] - n[2] >= 0:
  print('delicious')
elif n[2] - n[1] <= n[0]:
  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:
    print("delicious")
elif b-a <=x:
    print("safe")
else:
    print("dangerous")

Solution (Python):
x, a, b = map(int,input().split())
if a + x >= b and 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 <= 0:
  print('delicious')
elif B-A <= X:
  print('safe')
else:
  print('dangerous')

Solution (Python):
x,a,b=map(int,input().split())
j=b-a
if j<=0:
    print('delicious')
elif j<=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 A >= B:
  print("delicious")
else:
  if B-A <= X:
    print("safe")
  else:
    print("dangerous")

Solution (Python):


import sys






























def main():
    mod = 1000000007                
    inf = float('inf')              
    
    sys.setrecursionlimit(10**6)    
    def input(): return sys.stdin.readline().rstrip()
    def ii():    return int(input())
    def mi():    return map(int, input().split())
    def mi_0():  return map(lambda x: int(x)-1, input().split())
    def lmi():   return list(map(int, input().split()))
    def lmi_0(): return list(map(lambda x: int(x)-1, input().split()))
    def li():    return list(input())
    
    
    x, a, b = mi()
    if b <= a:
        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 <= 0:
    print('delicious')
elif B - A <= X:
    print('safe')
else:
    print('dangerous')

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

x, a, b = map(int, readline().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 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, y, z = map(int, input().split())
if y >= z:
    print("delicious")
elif x - z + y >= 0:
    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 = list(map(int, input().split()))
if b <= a:
    print('delicious')
elif a < b <= x + 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):
import sys
x,a,b = map(int,input().split())

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

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

if b <= a:
  print("delicious")
elif a + x >= b:
  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):
def main():
  num = list(map(int,input().split()))
  if num[2]<=num[1]:
    print('delicious')
  elif num[0] >= num[2]-num[1]:
    print('safe')
  else:
    print('dangerous')
      
main()

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 7)
f_inf = float('inf')
mod = 10 ** 9 + 7


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


if __name__ == '__main__':
    resolve()

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 a >= b:
  print("delicious")
elif a+x >= b:
  print("safe")
else:
  print("dangerous")

Solution (Python):

import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
input=lambda: sys.stdin.readline().rstrip()
YesNo=lambda b: bool([print('Yes')] if b else print('No'))
YESNO=lambda b: bool([print('YES')] if b else print('NO'))
int1=lambda x:int(x)-1

def main():
    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 =map(int,input().split())
if A-B>=0:
    print('delicious')
elif A-B<0 and 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())
d = B-A
if d <= 0:
    print("delicious")
elif d <= 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) <= 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):

"""
Created on Thu May 14 12:58:06 2020

@author: shinba
"""

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())

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

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):
import sys
import math
import bisect

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

if __name__ == "__main__":
    main()

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

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

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

Solution (Python):






import sys
input = sys.stdin.readline

import math
from collections import deque
from fractions import gcd
from functools import lru_cache






MOD = 10**9+7
INF = float('inf')






def inputI(): return int(input().strip())
def inputS(): return input().strip()
def inputIL(): return list(map(int,input().split()))
def inputSL(): return list(map(str,input().split()))
def inputILs(n): return list(int(input()) for _ in range(n))
def inputSLs(n): return list(input().strip() for _ in range(n))
def inputILL(n): return [list(map(int, input().split())) for _ in range(n)]
def inputSLL(n): return [list(map(str, input().split())) for _ in range(n)]


def inv(n): return pow(n, MOD-2, MOD)


kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret


def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])
    return arr


def lcm(a, b):
    return a * b // gcd (a, b)





X,A,B = inputIL()

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 b <= a else ("safe" if b <= (a + x) else "dangerous"))

Solution (Python):
x, a, b = map(int, input().split())
if a >= b:
    print("delicious")
elif b <= x + 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 = 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 >= 0:
    ans = "delicious"
elif a + x - b >= 0:
    ans = "safe"
else:
    ans ="dangerous"

print(ans)

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


if __name__ == "__main__":
    main()

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())
ans = 'dangerous'
if b-a <= 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')
elif - A + B <= X:
    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 a>=b:
  print('delicious')
elif b-a<=x:
  print('safe')
else :
  print('dangerous')