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, raw_input().split())

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

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

Solution (Python):

"""
http://abc065.contest.atcoder.jp/tasks/abc065_a

"""
import sys
from sys import stdin
input = stdin.readline


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


if __name__ == '__main__':
    main(sys.argv[1:])

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

Solution (Python):
first = input()
split_first = first.split()

d = int(split_first[0])
a = int(split_first[1])
b = int(split_first[2])

if a >= b:
   print ('delicious')
elif b - a <= d:
   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 = list(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())

e = b-a

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

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

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

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

Solution (Python):
x,a,b=map(int,raw_input('').strip().split())
diff=b-a

if diff<=0:
    print 'delicious'
else:
    if diff<=x:
        print 'safe'
    else:
        print 'dangerous'

Solution (Python):
stdin = input()

d = int(stdin.split(" ")[0])
a = int(stdin.split(" ")[1])
b = int(stdin.split(" ")[2])

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

Solution (Python):
l = list(map(int, input().split()))
border = l[1] - l[2]
if border < 0:
    if l[0] >= abs(border):
        print("safe")
    else:
        print("dangerous")
else:
    print("delicious")

Solution (Python):
l = list(map(int, input().split()))
border = l[1] - l[2]
if border < 0:
    if l[0] >= abs(border):
        print("safe")
    else:
        print("dangerous")
else:
    print("delicious")

Solution (Python):


X, A, B = map(int, input().split())
a = 0
if B > A : a = 1
if B > X + A : a = 2
print(['delicious', 'safe', 'dangerous'][a])

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

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

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

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

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

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

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

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

else:
    print("safe")

Solution (Python):
XABstr = input().split()
XAB = []
for n in XABstr:
    XAB.append(int(n))
dif = XAB[2]-XAB[1]
if dif <= 0:
    print('delicious')
elif dif > 0:
    if dif <= XAB[0]:
        print('safe')
    elif dif > XAB[0]:
        print('dangerous')

Solution (Python):



import sys
import re
import math
import collections
import itertools
import functools

DEBUG = True
DEBUG = False

def dbg(*args):
    if DEBUG:
        print("DBG: ", file=sys.stderr, end="")
        print(*args, file=sys.stderr)


def feel(x, a, b):
    if b <= a:
        return "delicious"
    elif b - a <= x:
        return "safe"
    else:
        return "dangerous"

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

    print(feel(x, a, b))

if __name__ == "__main__": main()

Solution (Python):
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def ris(): return list(input())
def pli(a): return "".join(list(map(str, a)))

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

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

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

if (b - a) <= 0:
    print("delicious")

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


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


if __name__ == '__main__':
    main()

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

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

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

kigen = A
safe = x + A
if B <= kigen:
    print("delicious")
elif B <= safe:
    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):

data = [int(n) for n in input().split()]

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

Solution (Python):
from sys import stdin
x,a,b = map(int,stdin.readline().split())
ans = 'safe'
if b-a > x:
 ans = 'dangerous'
elif b<=a:
 ans = 'delicious'

print ans

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

y = a-b
ans = 'delicious'
if y < 0:
    if y >= -x:
        ans = 'safe'
    else:
        ans = 'dangerous'

print(ans)

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

Solution (Python):

import numpy as np
X,A,B = list(map(int, input().split()))
if (B<=A):
    print("delicious")
if(A<B & B<=A+X):
    print("safe")
if(A+X <B ):
    print("dangerous")

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

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

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

Solution (Python):
X,A,B=[int(i) for i in 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 <= 0:
    print("delicious")
elif b - a <= x:
    print("safe")
else:
    print("dangerous")

Solution (Python):


import sys
import subprocess
import json
import time
import math
import re
import sqlite3

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

Solution (Python):
a = raw_input().split()
for i in range(3):
	a[i] = int(a[i])

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

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()



def main():
    x,a,b = LI()
    if a >= b:
        return 'delicious'
    if a+x >= b:
        return 'safe'
    return 'dangerous'


print(main())

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):
ans = ['delicious', 'safe', 'dangerous']

def judge(x, a, b):
	if a >= b:
		return 0
	if x + a >= b:
		return 1
	return 2

inpt = map(int, raw_input().split())
x = inpt[0]
a = inpt[1]
b = inpt[2]

print ans[judge(x, a, b)]

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

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

Solution (Python):
x,a,b = [int(i) for i in 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 a-b >= 0:
    print("delicious")
else:
    if abs(a-b) <= x:
        print("safe")
    else:
        print("dangerous")

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

Pass = B - A

if Pass <= 0:
	print("delicious")
elif Pass <= X:
	print("safe")
elif Pass > X:
	print("dangerous")

Solution (Python):
input_ = input().split(' ')
X = int(input_[0])
A = int(input_[1])
B = int(input_[2])
if B <= A:
    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 -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 and b-a >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("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):
import sys
    
    
def main():
    x, a, b = map(int, input().split())

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


if __name__ == '__main__':
    sys.exit(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 = [int(i) for i in 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 (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()]

'''
print('x', x)
print('a', a)
print('b', b)
'''

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

Solution (Python):
import sys




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


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


def read_int():
    return int(input())


def read_str():
    return input()


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

Solution (Python):
data_input = [int(i) for i in input().split()]
if data_input[1] >= data_input[2] :
    print("delicious")
elif data_input[0] + data_input[1] - data_input[2] >= 0:
    print("safe")
else:
    print("dangerous")

Solution (Python):
a = list(map(int, input().split()))
if a[1]-a[2] >=0:
    print("delicious")
elif a[1]-a[2] + a[0] >=0:
    print("safe")
else:
    print("dangerous")

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

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

Solution (Python):
def main():
    X, A, B = list(map(int, input().strip().split()))
    answer = ""
    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 B>=A+X+1:
    print("dangerous")
elif B<=A:
    print("delicious")
elif B>=X-A:
    print("safe")

Solution (Python):
l = map(int, raw_input().split())

X = l[0]
A = l[1]
B = l[2]

if B - A > X:
	print 'dangerous'

if B - A <= X:

	if A >= B:
		print 'delicious'

	else:	
		print 'safe'

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

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

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

Solution (Python):
num=raw_input('')
numberdays=num.split(' ')
if int(numberdays[2])-int(numberdays[1])>int(numberdays[0]):
    print 'dangerous'
if 0<int(numberdays[2])-int(numberdays[1])<=int(numberdays[0]):
    print 'safe'
if int(numberdays[2])-int(numberdays[1])<=0:
    print 'delicious'

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

a()

Solution (Python):


digest_limit, days_ago, after_days = map(int, input().rstrip().split())

days_to_limit = after_days - days_ago

if days_to_limit <= 0:
    print('delicious')
elif days_to_limit < digest_limit + 1:
    print('safe')
else:
    print('dangerous')

Solution (Python):
if(__name__=="__main__"):
    X, A, B =[int(i) for i in 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>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('dangerous')
else:
    print('safe')

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

Solution (Python):









Data = input().split()

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

set1 = A-B

if set1 >= 0:
    print("delicious")

elif X + set1 >= 0:
    print("safe")

else:
    print("dangerous")

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


N = map(int, raw_input().split())
exceed=N[2]-N[1]


if exceed<=0:
	print "delicious"
if exceed<=N[0] and exceed>0:
	print "safe"
elif exceed>N[0]:
	print "dangerous"

Solution (Python):


import sys

def main(argv):
    for line in sys.stdin:
        X, A, B = map(lambda x: int(x), line.split(" ", 3))
        if B <= A:
            print("delicious")
        elif (B - A) <= X:
            print("safe")
        else:
            print("dangerous")

if __name__ == "__main__":
    main(sys.argv)

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

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

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

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

z = a - b

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

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

if x[1]-x[2]<0:
 if x[0]>=x[2]-x[1]:
  print('safe')
 else:print('dangerous')
else:
 print('delicious')


quit()

Solution (Python):

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

Solution (Python):


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

t = a - b

if t >= 0:
    print "delicious"
    exit()

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

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

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

Solution (Python):
x,a,b = [int(x) for x in 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 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(" ")]
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 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 > 0 and x < b-a:
    print("dangerous")
elif b-a > 0 and x >= b-a:
    print("safe")
else:
    print("delicious")

Solution (Python):


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

if A >= B:
    print("delicious")
elif (A + X) >= B:
    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):
data = input().split()
X = int(data[0])
A = int(data[1])
B = int(data[2])

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

Solution (Python):
def ini(): return int(input())
def inli(): return list(map(int, input().split()))
def inf(): return float(input())
def inlf(): return list(map(float, input().split()))
def inl(): return list(input())
def pli(): return "".join(list(map(str, ans)))

a=inli()

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

Solution (Python):

X, A, B = (int(e) for e in input().split())

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

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


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

Solution (Python):

l = [int(i) for i in input().split()]
if l[2] > l[1]+l[0]:
  print("dangerous")
elif l[2] > l[1]:
  print("safe")
else:
  print("delicious")

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

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

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

    print(ans)

main()

Solution (Python):

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

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

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

Solution (Python):


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

if y <= 0:
 print("delicious")
elif y <= 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):
z =list(map(int,input().split(" ")))
d=z[2]-z[1]
if d<=0:
  print("delicious")
elif d<=z[0]:
  print("safe")
else:
  print("dangerous")

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

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

Solution (Python):
if __name__ == '__main__':
    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 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 B <= A:
    print('delicious')
elif A + X >= B:
    print('safe')
else:
    print('dangerous')

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

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

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