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

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

Solution (Python):

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

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

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

Solution (Python):

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

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

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

Solution (Python):
import sys

x, a, b = map(int, sys.stdin.readline().split())

def main():
    d = -a + b
    if d <= 0: ans = 'delicious'
    elif d <= x: ans = 'safe'
    else: ans = 'dangerous'
    print(ans)

if __name__ ==  '__main__':
    main()

Solution (Python):

x, a, b = [int(s) for s 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 A-B >= 0:
  print('delicious')
else:
  if abs(A-B) <= X:
    print('safe')
  else:
    print('dangerous')

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

tmp = b-a

if tmp <= 0:
    print("delicious")
elif tmp <=x:
    print("safe")
else:
    print("dangerous")

Solution (Python):
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
def ism():return map(str,input().split())
def isl():return list(map(str,input().split()))

x,a,b = iim()

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

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

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

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

hantei = b - a

if hantei <= 0:
    print("delicious")
elif x >= hantei:
    print("safe")
elif (x + 1) <= hantei:
    print("dangerous")

Solution (Python):
if __name__ == '__main__':
    a = [int(i) for i in input().split()]

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

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

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

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

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

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

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

Solution (Python):
X,A,B = [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 a>=b:
    print("delicious")
elif (b-a)<=x:
    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 x+a<b:
    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):


import sys
 
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
 
ni      = lambda: int(ns())
nin     = lambda y: [ni() for _ in range(y)]
na      = lambda: list(map(int, stdin.readline().split()))
nan     = lambda y: [na() for _ in range(y)]
nf      = lambda: float(ns())
nfn     = lambda y: [nf() for _ in range(y)]
nfa     = lambda: list(map(float, stdin.readline().split()))
nfan    = lambda y: [nfa() for _ in range(y)]
ns      = lambda: stdin.readline().rstrip()
nsn     = lambda y: [ns() for _ in range(y)]
ncl     = lambda y: [list(ns()) for _ in range(y)]
nas     = lambda: stdin.readline().split()

x, a, b = na()

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<=0 else 'safe' if b-a<=x else 'dangerous')

Solution (Python):
import sys
import os

MOD = 10 ** 9 + 7


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    X, A, B = list(map(int, sys.stdin.buffer.readline().decode().split()))
    if B - A > X:
        print('dangerous')
    elif A >= B:
        print('delicious')
    else:
        print('safe')


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

Solution (Python):
x, buy, eat = map(int,input().split())

if buy >= eat:
    print("delicious")
elif eat-buy <= x:
    print("safe")
elif eat - buy > x:
    print("dangerous")

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

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

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

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

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

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

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

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

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

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

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

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

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 = [int(i) for i in input().split()]

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

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

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

Solution (Python):

x,a,b=map(int,input().split())
if 0>=b-a:
    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")
elif b - a <= x and 0 < b - a:
    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):

import sys


def solve(X: int, A: int, B: int):
    print("delicious" if A >= B else "safe" if A + X >= B else "dangerous")


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    X = int(next(tokens))  
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(X, A, B)


if __name__ == '__main__':
    main()

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 = list(map(int,input().split()))

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

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

import sys


def solve(X: int, A: int, B: int):
    if B - A <= 0:
        return "delicious"
    elif B - A <= X:
        return "safe"
    else:
        return "dangerous"



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    X = int(next(tokens))  
    A = int(next(tokens))  
    B = int(next(tokens))  
    print(solve(X, A, B))

if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    x,a,b=MI()
    if a>=b:
        print("delicious")
    elif a+x>=b:
        print("safe")
    else:
        print("dangerous")

main()

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

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

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

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

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

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

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

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):
input_list = input().split(" ")
syoumi = int(input_list[0])
mae = int(input_list[1])
eat = int(input_list[2])
if eat <= mae:
  print("delicious")
elif (eat - mae) <= syoumi:
  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())
print('delicious' if b<=a else 'safe' if b-a<=x else 'dangerous')

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

limit=B-A


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

d=-A+B
print( "delicious" if d <= 0 else "safe" if d <= 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<=0:
  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 = (int(_) for _ in input().split())
if b - a <= 0:
  print('delicious')
elif b - a <= x:
  print('safe')
else:
  print('dangerous')

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

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

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

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

Solution (Python):
X,A,B=map(int,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 A >= B:
    print("delicious")

elif A + X >= B:
    print("safe")

else:
    print("dangerous")

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

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

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

Solution (Python):
def main():
    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):
def I(): return int(input())
def MI(): return map(int, input().split())
def LMI(): return list(map(int, input().split()))

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

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

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

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

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

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

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

Solution (Python):
x,a,b=list(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:
  print("delicious")
elif B<=A+X:
  print("safe")
else:
  print("dangerous")

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

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

Solution (Python):


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

Solution (Python):
import sys

read = sys.stdin.buffer.read
input = sys.stdin.buffer.readline
inputs = sys.stdin.buffer.readlines






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






	
if __name__ == "__main__":
	main()

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

Solution (Python):


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

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

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

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

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

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

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

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))

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

Solution (Python):
from fractions import gcd


import heapq
import math
from collections import defaultdict, Counter, deque
from bisect import *
import itertools
import fractions
import sys
sys.setrecursionlimit(10 ** 7)
MOD = 10 ** 9 + 7



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


def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            divisors.append(i)
            if i != n // i:
                divisors.append(n//i)

    
    return divisors


def factorize(n):
    fct = []  
    b, e = 2, 0  
    while b * b <= n:
        while n % b == 0:
            n = n // b
            e = e + 1
        if e > 0:
            fct.append((b, e))
        b, e = b + 1, 0
    if n > 1:
        fct.append((n, 1))
    return fct


def is_prime(n):
    if n == 1:
        return False

    for k in range(2, int(math.sqrt(n)) + 1):
        if n % k == 0:
            return False

    return True


def primes(n):
    is_prime = [True] * (n + 1)
    is_prime[0] = False
    is_prime[1] = False
    for i in range(2, int(n**0.5) + 1):
        if not is_prime[i]:
            continue
        for j in range(i * 2, n + 1, i):
            is_prime[j] = False
    return [i for i in range(n + 1) if is_prime[i]]

def modpow(a, n, mod):
    res = 1
    while n > 0:
        if n & 1:
            res = res * a % mod
        a = a * a % mod
        n >>= 1
    return res


def modinv(a, mod):
    return modpow(a, mod - 2, mod)


def cnk(a, b):
    MOD = 10**9+7
    ret = 1
    for i in range(b):
        ret *= (a-i)
        ret %= MOD
        ret = ret * modinv(i+1, MOD) % MOD
    return ret




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


            


    




    


if __name__ == '__main__':
    main()

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

if b-a<=0:
    print(ans[0])
elif b-a<=x:
    print(ans[1])
elif b-a>x:
    print(ans[2])

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


print(ans)

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

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

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

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

Solution (Python):











import sys
sys.setrecursionlimit(10**6)
input=sys.stdin.readline
from math import floor,sqrt,factorial,hypot,log 
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect_right
from copy import deepcopy
from fractions import gcd
from random import randint
def ceil(a,b): return (a+b-1)//b
inf=float('inf')
mod = 10**9+7
def pprint(*A): 
    for a in A:     print(*a,sep='\n')
def INT_(n): return int(n)-1
def MI(): return map(int,input().split())
def MF(): return map(float, input().split())
def MI_(): return map(INT_,input().split())
def LI(): return list(MI())
def LI_(): return [int(x) - 1 for x in input().split()]
def LF(): return list(MF())
def LIN(n:int): return [I() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]
def LLIN_(n: int): return [LI_() for _ in range(n)]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def I(): return int(input())
def F(): return float(input())
def ST(): return input().replace('\n', '')

def main():
    X,A,B=MI()
    C=A-B
    if A>=B:
        print("delicious")
    elif B-A<=X:
        print("safe")
    else:
        print("dangerous")
    
if __name__ == '__main__':
    main()

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


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

C = B - A

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

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