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-----
4 3 6

-----Sample Output-----
safe

He ate the food three days after the "best-by" date. It was not delicious or harmful for him.

Difficulty: introductory

Starter code:

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


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

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

import sys

sys.setrecursionlimit(10 ** 8)
ini = lambda: int(sys.stdin.readline())
inl = lambda: [int(x) for x in sys.stdin.readline().split()]
ins = lambda: sys.stdin.readline().rstrip()
debug = lambda *a, **kw: print("\033[33m", *a, "\033[0m", **dict(file=sys.stderr, **kw))


def solve():
    x, a, b = inl()
    if b - a > x:
        return "dangerous"
    elif b > a:
        return "safe"
    return "delicious"


print(solve())


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

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


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


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

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

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

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


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

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


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

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

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

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


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


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

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

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

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

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


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

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


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

lst = input().split()

X = int(lst[0])
A = int(lst[1])
B = int(lst[2])

d = B - A

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

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

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

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


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

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

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

if (d <= 0):
    print('delicious ')
elif(d <= x):
    print('safe')
else:
    print('dangerous')


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

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

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


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

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

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

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

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

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

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

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

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


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


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

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

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


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

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


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

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

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


def __starting_point():
    solve()
__starting_point()

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

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

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

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

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

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

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

#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [list(input()) for _ in range(n)]

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

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



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

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


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


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

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

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



days_of_fine, day_before_expiration, eating_day = map(int, input().split())

if eating_day <= day_before_expiration:
    print('delicious')
elif day_before_expiration < eating_day <= days_of_fine + day_before_expiration:
    print('safe')
else:
    print('dangerous')

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

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

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

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

days_of_fine, day_befoe_exparitation, eating_day = map(int, input().split())

if eating_day <= days_of_fine:
    print('delicious')
elif day_befoe_exparitation < eating_day <= days_of_fine + day_befoe_exparitation:
    print('safe')
else:
    print('dangerous')

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

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

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

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

import sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = 10**20
def I(): return int(input())
def F(): return float(input())
def S(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()

def resolve():
    X, A, B = LI()

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

def __starting_point():
    resolve()
__starting_point()

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

def __starting_point():
    iroha()


__starting_point()

X, A, B = [ int(v) for v in input().split(" ") ]

# A: 3 B: 4 X: 3

result = A - B

if result >= 0:
  print("delicious")
elif abs(result) > X:
  print("dangerous")
else:
  print("safe")



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

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

if b-a<=0:
    ans="delicious"
elif b-a<=x:
    ans="safe"
else:
    ans="dangerous"

print(ans)

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

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

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

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

#
# abc065 a
#

import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """4 3 6"""
        output = """safe"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """6 5 1"""
        output = """delicious"""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """3 7 12"""
        output = """dangerous"""
        self.assertIO(input, output)


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

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


def __starting_point():
    # unittest.main()
    resolve()

__starting_point()

#n = int(input())
x, a, b = list(map(int, input().split()))
#l = list(map(int,input().split()))
#l = [list(map(int,input().split())) for i in range(n)]

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


#!/usr/bin/env python3
X, A, B = list(map(int, input().split()))

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


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

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


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

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

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

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

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

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


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

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

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

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

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

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

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

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

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


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

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


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

LI = lambda: list(map(int, input().split()))

X, A, B = LI()


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


def __starting_point():
    main()

__starting_point()

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

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

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

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

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

#!/usr/bin/env python3
x,a,b=map(int,input().split())
if a-b >= 0:
    print('delicious')
elif a-b >= -x:
    print('safe')
else:
    print('dangerous')

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

with open(0) as f:
    X, A, B = map(int, f.read().split())
if B-A <= 0:
    ans = 'delicious'
if 0 < B-A <= X:
    ans = 'safe'
if B-A > X:
    ans = 'dangerous'
print(ans)