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())
ans = "dangerous"

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

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

C = B - A
if C <= 0:
    print("delicious")
elif C <= 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())
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(X >= B-A):
    print('safe')
else:
    print('dangerous')

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

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

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


if __name__ == "__main__":
    main()

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


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

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

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

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

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

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

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

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

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

Solution (Python):

import sys
input = sys.stdin.readline

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

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

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

Solution (Python):


import itertools
from collections import Counter
from collections import defaultdict
import bisect
import math
import heapq

def main():
    X, A, B = map(int, input().split())
    if B <= A:
        print('delicious')
        exit()
    if B <= A + X:
        print('safe')
        exit()
    print('dangerous')


if __name__ == '__main__':
    main()

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

elif a>=b:
    print("delicious")

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

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

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

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


def input():
    return sys.stdin.readline()[:-1]








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

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

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 <= X + 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):

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

Solution (Python):
x, a, b =[int(i) for i in 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())
print('delicious' if B <= A else 'safe' if B <= A+X else '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):
a,b,c = map(int,input().split())

if b >= c:
    print('delicious')

else:
    if (c-b) <= a:
        print('safe')
    else:
        print('dangerous')

Solution (Python):
a = list(map(int, input().split()))
if a[2]-a[1] <= 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')
else:
    if 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):

def read_input():
    x, a, b = map(int, input().split())
    return x, a, b

def submit():
    x, a, b = read_input()

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



if __name__ == '__main__':
    submit()

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

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

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

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

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

Solution (Python):

import copy
import random
import bisect 
import fractions 
import math

mod = 10**9+7


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

Solution (Python):
x,y,z= list(map(int, input().split()))
if y>=z:
    print("delicious")
else:
    print("safe" if x+y>=z else "dangerous")

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

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

print(ans)

Solution (Python):
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    x,a,b = f()

    after_by = a - b

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

solve()

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

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

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

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

Solution (Python):


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

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

Solution (Python):
import functools

import os

INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


def inl():
    return list(map(int, input().split()))


def inlf():
    return list(map(float, input().split()))


def inls():
    return input().split()


def inpm(line):
    return [inp() for _ in range(line)]


def inpfm(line):
    return [inpf() for _ in range(line)]


def inpsm(line):
    return [inps() for _ in range(line)]


def inlm(line):
    return [inl() for _ in range(line)]


def inlfm(line):
    return [inlf() for _ in range(line)]


def inlsm(line):
    return [inls() for _ in range(line)]


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper


x, a, b = inl()

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

Solution (Python):

x, a, b = list(map(int, input().rstrip().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 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):
s = list(map(int, input().split()))
x = s[0]
a = s[1]*(-1)
b = s[2]

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

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

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-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:
  print('safe')
else:
  print('dangerous')

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

Solution (Python):
x, a, b = [int(n) for n in 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 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 + A - 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):
from functools import reduce
import math

def main():
    
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    INF = float("inf")
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    X,A,B = (int(_) for _ in input().split())
    if (B-A) <= X:        
        if B <= A:
            print('delicious')
        else:
            print('safe')
    else:
        print('dangerous')
    
if __name__ == '__main__':
    main()

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

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

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

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

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

if b <= a:
    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 (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 abs(B - A) <= X else 'dangerous')

Solution (Python):
x, y, z =map(int,input().split())

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

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 0 < b-a <= x: print("safe")
else: print("ddealnigceiroouuss"[b-a>x::2])

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

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

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

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

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 B-A<=0:
    print("delicious")
elif B-A > X:
    print("dangerous")
else:
    print("safe")

Solution (Python):
import sys

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

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


if __name__ == '__main__':
    print(main())

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

if 0 >= B-A:
    print('delicious')
elif X >= B-A:
    print('safe')
elif X < 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 X < - A + B:
    print('dangerous')
elif 0 < - A + B <= X:
    print('safe')
elif - A + B <= 0:
    print('delicious')

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

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

print(result)

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-A)<=X:
        print('safe')
else:
        print('dangerous')

Solution (Python):

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

c = b - a

if c <= 0:
    print("delicious")
elif c <= 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 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):

from collections import defaultdict
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
mod = 1000000007


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





"""
def root(x):
    if x == par[x]:
        return x
    par[x] = root(par[x])
    return par[x]

def same(x,y):
    return root(x) == root(y)

def unite(x,y):
    x = root(x)
    y = root(y)
    if rank[x] < rank[y]:
        par[x] = y
    else:
        par[y] = x
        if rank[x] == rank[y]:
            rank[x] += 1
n = I()
v = LIR(n)
l = [None for i in range(2*n-2)]
for i in range(n):
    v[i].append(i)
par = [i for i in range(n)]
rank = [0 for i in range(n)]
v.sort(key = lambda x:x[0])
for i in range(n-1):
    l[i] = [v[i][2],v[i+1][2],v[i+1][0]-v[i][0]]
v.sort(key = lambda x:x[1])
for i in range(n-1):
    l[i+n-1] = [v[i][2],v[i+1][2],v[i+1][1]-v[i][1]]
l.sort(key = lambda x:x[2])
k = 0
ans = 0
for i in range(2*n-2):
    x,y,c = l[i]
    if not same(x,y):
        k += 1
        ans += c
        unite(x,y)
    if k == n-1:break
print(ans)
"""

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

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

Solution (Python):
import sys
input = sys.stdin.readline
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,y,z=map(int,input().split(' '))

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

Solution (Python):
def expired(X: int, A: int, B: int)->str:
    if (B-A) <= 0:
        return 'delicious'
    if (B-A) <= X:
        return 'safe'
    return 'dangerous'


if __name__ == "__main__":
    X, A, B = map(int, input().split())
    ans = expired(X, A, B)
    print(ans)

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

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

Solution (Python):
X,A,B = [int(x) for x 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')
else:
	print('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')

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

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

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

Solution (Python):
X, A, B = [int(_) for _ 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())
if A>=B:print('delicious')
elif A<B<=A+X:print('safe')
elif A+X<B:print('dangerous')

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